Skip to content
Permalink
Browse files

Few more printf variants and serial syscalls. Python's pgen now compi…

…les.
  • Loading branch information...
tari committed May 31, 2012
1 parent 1550f2b commit ef57be4459b5ec30b3e5aa416a2f82df05b84001
@@ -290,3 +290,14 @@ int fprintf(FILE *stream, const char *fmt, ...) {
return ret;
}

int printf(const char *fmt, ...) {
va_list ap;
va_start(ap, fmt);
int ret = vfprintf(stdout, fmt, ap);
va_end(ap);
return ret;
}

int vsprintf(char *str, const char *fmt, va_list ap) {
return _v_printf(fmt, ap, _writer_buffer, &str);
}

0 comments on commit ef57be4

Please sign in to comment.
You can’t perform that action at this time.