Rev 6424 |
Go to most recent revision |
Blame |
Last modification |
View Log
| Download
| RSS feed
#include <stdio.h>
#include <stdlib.h>
int fprintf(FILE
* file
, const char* format
, ...
)
{
va_list arg;
}
int vfprintf ( FILE
* file
, const char * format
, va_list arg
)
{
char *buf;
int printed, rc = 0;
if(!file || !format)
{
errno = E_INVALIDPTR;
return errno;
}
if(!buf)
{
errno = E_NOMEM;
return errno;
}
printed=format_print(buf,8191, format,arg);
if (file == stderr)
debug_out_str(buf);
else
rc
= fwrite(buf
,printed
,1,file
);
if (rc < 0)
return rc;
else
return(printed);
}