From 1e397041c255581b68dc4ba240b3267fd3d0dc8f Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 16 Apr 2021 20:20:29 +0200 Subject: Cleaning code --- src/libc/math.h | 1 + src/libc/stdio.h | 11 +++++++++++ src/libc/string.h | 3 +++ 3 files changed, 15 insertions(+) (limited to 'src/libc') diff --git a/src/libc/math.h b/src/libc/math.h index 9f9bd58..4cc37a9 100644 --- a/src/libc/math.h +++ b/src/libc/math.h @@ -5,4 +5,5 @@ int pow(int x,int n); int max(int x,int y); int min(int x,int y); int abs(int x); + #endif \ No newline at end of file diff --git a/src/libc/stdio.h b/src/libc/stdio.h index e2a35ad..d4bd6b6 100644 --- a/src/libc/stdio.h +++ b/src/libc/stdio.h @@ -3,8 +3,19 @@ #include "drivers/framebuffer.h" +/** + * Print a char* in the framebuffer + */ void print(char*); + +/** + * Print a char in the framebuffer + */ void printc(char*,VIDEO_COLORS c); + +/** + * Print an integer using itoa() + */ void printi(int i); #endif \ No newline at end of file diff --git a/src/libc/string.h b/src/libc/string.h index 82106b2..c3d3614 100644 --- a/src/libc/string.h +++ b/src/libc/string.h @@ -1,6 +1,9 @@ #ifndef STRING_H #define STRING_H +/** + * Convert int to char + */ void itoa(int i, char *a); #endif \ No newline at end of file -- cgit v1.2.3