From d9443c7fdf756212bb52ffc934b1166038bc2ad3 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 21 Apr 2021 12:23:54 +0200 Subject: Refactoring --- src/libc/stdio.c | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/libc/stdio.c (limited to 'src/libc/stdio.c') diff --git a/src/libc/stdio.c b/src/libc/stdio.c deleted file mode 100644 index 6e0063b..0000000 --- a/src/libc/stdio.c +++ /dev/null @@ -1,25 +0,0 @@ -#include "stdio.h" -#include "string.h" - -extern VIDEO_STATE VS; - -void print(char *str){ - int i=0; - while(str[i]!='\0'){ - putchar(str[i]); - i++; - } -} - -void printc(char* str,VIDEO_COLORS c){ - VIDEO_COLORS backup=VS.fg; - VS.fg=c; - print(str); - VS.fg=backup; -} - -void printi(int i){ - char str[12]; - itoa(i,str); - print(str); -} \ No newline at end of file -- cgit v1.2.3