| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <stdio.h> #include <stdarg.h> int vfprintf(FILE *file, const char *format, va_list arguments); |
Sends formatted output from the arguments to the file. See section printf.
The number of characters written.
| ANSI/ISO C | C89; C99 |
| POSIX | 1003.2-1992; 1003.1-2001 |
void my_errmsg(char *format, ...)
{
va_list arg;
va_start(arg, format);
fprintf(stderr, "my_errmsg: ");
vfprintf(stderr, format, arg);
va_end(arg);
}
|