home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / m4-1.1-src.lha / src / amiga / m4-1.1 / lib / vfprintf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-16  |  1.0 KB  |  39 lines

  1. /* vfprintf replacement for GNU.
  2.    Copyright (C) 1993 Free Software Foundation, Inc.
  3.  
  4.    This program is free software; you can redistribute it and/or modify it
  5.    under the terms of the GNU General Public License as published by the
  6.    Free Software Foundation; either version 2, or (at your option) any
  7.    later version.
  8.    
  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.
  13.    
  14.    You should have received a copy of the GNU General Public License
  15.    along with this program; if not, write to the Free Software
  16.    Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. #ifdef HAVE_CONFIG_H
  19. #include "config.h"
  20. #endif
  21.  
  22. #include <stdio.h>
  23. #include <varargs.h>
  24.  
  25. int
  26. vfprintf (file, format, ap)
  27.      FILE *file;
  28.      const char *format;
  29.      va_list ap;
  30. {
  31.   int nitems;
  32.  
  33.   nitems = _doprnt (format, ap, file);
  34.   return ferror (file) ? EOF : nitems;
  35. }
  36.  
  37.  
  38.  
  39.