File: vfprintf.c

package info (click to toggle)
bc 1.06-15
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,576 kB
  • ctags: 812
  • sloc: ansic: 8,585; yacc: 970; sh: 633; lex: 378; makefile: 141
file content (31 lines) | stat: -rw-r--r-- 565 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* vfprintf.c -- this was provided for minix.  It may not
   work on any other system. */

#include "config.h"
#ifndef HAVE_VPRINTF
#ifndef HAVE_DOPRINT
 #error need vfprintf() or doprint()
#else

#ifdef HAVE_LIB_H
#include <lib.h>
#endif
#ifdef HAVE_STDARG_H
#include <stdarg.h>
#endif
#ifdef HAVE_STDIO_H
#include <stdio.h>
#endif

int vfprintf(file, format, argp)
FILE *file;
_CONST char *format;
va_list argp;
{
  _doprintf(file, format, argp);
  if (testflag(file, PERPRINTF)) fflush(file);
  return 0;
}

#endif /* HAVE_DOPRINT */
#endif /* !HAVE_VFPRINTF */