|
Packit |
70b277 |
/* vfprintf.c -- this was provided for minix. It may not
|
|
Packit |
70b277 |
work on any other system. */
|
|
Packit |
70b277 |
|
|
Packit |
70b277 |
#include "config.h"
|
|
Packit |
70b277 |
#ifndef HAVE_VPRINTF
|
|
Packit |
70b277 |
#ifndef HAVE_DOPRINT
|
|
Packit |
70b277 |
#error need vfprintf() or doprint()
|
|
Packit |
70b277 |
#else
|
|
Packit |
70b277 |
|
|
Packit |
70b277 |
#ifdef HAVE_LIB_H
|
|
Packit |
70b277 |
#include <lib.h>
|
|
Packit |
70b277 |
#endif
|
|
Packit |
70b277 |
#ifdef HAVE_STDARG_H
|
|
Packit |
70b277 |
#include <stdarg.h>
|
|
Packit |
70b277 |
#endif
|
|
Packit |
70b277 |
#ifdef HAVE_STDIO_H
|
|
Packit |
70b277 |
#include <stdio.h>
|
|
Packit |
70b277 |
#endif
|
|
Packit |
70b277 |
|
|
Packit |
70b277 |
int vfprintf(file, format, argp)
|
|
Packit |
70b277 |
FILE *file;
|
|
Packit |
70b277 |
_CONST char *format;
|
|
Packit |
70b277 |
va_list argp;
|
|
Packit |
70b277 |
{
|
|
Packit |
70b277 |
_doprintf(file, format, argp);
|
|
Packit |
70b277 |
if (testflag(file, PERPRINTF)) fflush(file);
|
|
Packit |
70b277 |
return 0;
|
|
Packit |
70b277 |
}
|
|
Packit |
70b277 |
|
|
Packit |
70b277 |
#endif /* HAVE_DOPRINT */
|
|
Packit |
70b277 |
#endif /* !HAVE_VFPRINTF */
|