mirror of https://github.com/garritfra/ditto-os
garritfra
4 years ago
7 changed files with 48 additions and 7 deletions
@ -1,8 +1,9 @@
|
||||
#include "kmain.h" |
||||
#include "fb.h" |
||||
#include "std.h" |
||||
|
||||
|
||||
int main() |
||||
{ |
||||
fb_write("Hello", 4); |
||||
printf("Hello"); |
||||
return 0; |
||||
} |
||||
} |
||||
|
@ -0,0 +1,17 @@
|
||||
#include "std.h" |
||||
#include "fb.h" |
||||
|
||||
|
||||
void printf(char *buf) { |
||||
fb_write(buf, strlen(buf)); |
||||
} |
||||
|
||||
void scanf(const char *format); |
||||
|
||||
unsigned int strlen(const char *str) { |
||||
const char *s; |
||||
|
||||
for (s = str; *s; ++s) |
||||
; |
||||
return (s - str); |
||||
} |
Loading…
Reference in new issue