X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/f13e160f6aa2f74895ecf1f65099265643836210..0ca0e2a565657cd3e37315fe665b45b13daaebf4:/lunaix-os/libs/ulibc/printf.c diff --git a/lunaix-os/libs/ulibc/printf.c b/lunaix-os/libs/ulibc/printf.c deleted file mode 100644 index 86c0b18..0000000 --- a/lunaix-os/libs/ulibc/printf.c +++ /dev/null @@ -1,24 +0,0 @@ -#include -#include -#include - -#include - -// This is VERY bad implementation as it mixes both kernel and user space -// code together. It is here however, just for the convenience of our testing -// program. -// FIXME Eliminate this when we're able to load program. - -void __USER__ -printf(const char* fmt, ...) -{ - const char buf[512]; - va_list args; - va_start(args, fmt); - - size_t sz = __ksprintf_internal(buf, fmt, 512, args); - - write(stdout, buf, sz); - - va_end(args); -} \ No newline at end of file