mirror of https://github.com/E-Almqvist/eOS
parent
903ec10e6c
commit
08d1f09e4c
@ -0,0 +1,2 @@ |
||||
#include "conv.h" |
||||
|
@ -0,0 +1 @@ |
||||
void int_to_str(int i, char* buf); |
@ -1,15 +0,0 @@ |
||||
#include "strf.h" |
||||
|
||||
#define int_offset 48 |
||||
// 0:48 - 9:57
|
||||
|
||||
char* int_to_str(int i, char* strbuf) { |
||||
if( i == 0 ) { |
||||
return (char*)(int_offset); |
||||
} else { |
||||
char cbuf; |
||||
cbuf = (char)((i % 10) + int_offset); |
||||
|
||||
return int_to_str(i / 10, strbuf + cbuf); |
||||
} |
||||
} |
@ -1 +0,0 @@ |
||||
char* int_to_str(int i, char* strbuf); |
Loading…
Reference in new issue