aboutsummaryrefslogtreecommitdiff
path: root/src/libc
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2021-04-16 20:20:29 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2021-04-16 20:20:29 +0200
commit1e397041c255581b68dc4ba240b3267fd3d0dc8f (patch)
tree757467f9ac0d998963ee5d80560205286b482acb /src/libc
parent93c2975ea8096a391a242299e119c31844b8fcbf (diff)
Cleaning code
Diffstat (limited to 'src/libc')
-rw-r--r--src/libc/math.h1
-rw-r--r--src/libc/stdio.h11
-rw-r--r--src/libc/string.h3
3 files changed, 15 insertions, 0 deletions
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