Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#include<stdarg.h>
#include<stdio.h>
int fprintf_t (FILE * stream,
const char * format, ...)
{
va_list ap;
int ret;
va_start(ap, format);
ret = vfprintf(stream, format, ap);
va_end(ap);
return ret;
}
int main (void) {
fprintf_t(stdout,"num:%d\n",1);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment