diff options
Diffstat (limited to 'src/libs/stdio.hpp')
| -rw-r--r-- | src/libs/stdio.hpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/libs/stdio.hpp b/src/libs/stdio.hpp new file mode 100644 index 0000000..f48ae81 --- /dev/null +++ b/src/libs/stdio.hpp @@ -0,0 +1,36 @@ +#pragma once + +#include "drivers/framebuffer.hpp" + +/// @brief Current active framebuffer driver +extern void (*__putchar)(char); + +/** + * Print a char* in the framebuffer + */ +void printk(char *,...); + +/** + * Print a char* + */ +void print(char *s); + +/** + * Print a char in the framebuffer + */ +void printc(char *, VIDEO_COLORS c); + +/** + * Print an integer using itoa() + */ +void printi(int i); + +/** + * Print an integer as hex using itoh() + */ +void printh(int h); + +/** + * Print an integer as hex using itoh() truncated to size + */ +void printh(int h, int size); |
