use the -newos toolchain even if -elf is present.
[newos.git] / apps / rld / rldaux.c
blob6d29d7f4f7b713a13cf1bf1bfbfd265770fa59aa
1 /*
2 ** Copyright 2001, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
4 */
5 #include <string.h>
6 #include <stdio.h>
7 #include <sys/syscalls.h>
9 int printf(const char *fmt, ...)
11 va_list args;
12 char buf[1024];
13 int i;
15 va_start(args, fmt);
16 i = vsprintf(buf, fmt, args);
17 va_end(args);
19 _kern_write(2, buf, 0, strlen(buf));
21 return i;