123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #ifdef HAVE_CONFIG_H
- #include "config.h"
- #endif
- #include <sys/types.h>
- #include <stdio.h>
- #include <stdarg.h>
- #include <stdlib.h>
- #include <unistd.h>
- #include "netdissect.h"
- vfprintf(f, fmt, args)
- FILE *f;
- char *fmt;
- va_list args;
- {
- int ret;
- if ((f->_flag & _IOWRT) == 0) {
- if (f->_flag & _IORW)
- f->_flag |= _IOWRT;
- else
- return EOF;
- }
- ret = _doprnt(fmt, args, f);
- return ferror(f) ? EOF : ret;
- }
|