From 0c3728863e502e141e9413a0528e36e320f78d4d Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 26 Aug 2021 21:21:19 +0200 Subject: [PATCH] Prototypes etc --- kernel/kernel.c | 6 ------ lib/strf.c | 9 +++++++++ lib/strf.h | 1 + 3 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 lib/strf.c create mode 100644 lib/strf.h diff --git a/kernel/kernel.c b/kernel/kernel.c index 290d9e5..2d24fd9 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -6,10 +6,4 @@ void main() { set_cursor_pos(28, 2); print("eOS Version 0.1 2021", 0xf0); - - /* - set_cursor_pos(0, 0); - for( int i = 0; i < 255; i++ ) - println("X", i); - */ } diff --git a/lib/strf.c b/lib/strf.c new file mode 100644 index 0000000..c273e1b --- /dev/null +++ b/lib/strf.c @@ -0,0 +1,9 @@ +#include "lib/strf.h" + +#define int_offset 48 +// 0:48 - 9:57 + +char* int_to_str(int i) { + char* strbuf; + double num = (double)i; +} diff --git a/lib/strf.h b/lib/strf.h new file mode 100644 index 0000000..2046d91 --- /dev/null +++ b/lib/strf.h @@ -0,0 +1 @@ +char* int_to_str(int i);