diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-24 18:23:01 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-24 19:43:52 +0100 |
commit | eee119de6a2bd0487e91daf69e7962351e2a3c9c (patch) | |
tree | e0e3bbe6d234e30216a83b65abafadf9f4df75f3 /os/src/sprintf.c | |
parent | 965df7faefabdd5f571b5eb46d45470223c91e12 (diff) |
Dummy software compiles; fixed a few linking issues. Also, most of the kernel syscalls are missing.
Diffstat (limited to 'os/src/sprintf.c')
-rw-r--r-- | os/src/sprintf.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/os/src/sprintf.c b/os/src/sprintf.c new file mode 100644 index 0000000..76ea9a2 --- /dev/null +++ b/os/src/sprintf.c @@ -0,0 +1,10 @@ +#include <reent.h> +#include <stdarg.h> + +int sprintf(char * str, const char * fmt, ...) { + int r; + va_list ap; + va_start(ap, fmt); + r = _vsprintf_r(_impure_ptr, str, fmt, ap); + va_end(ap); +} |