home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / minix / 4342 < prev    next >
Encoding:
Text File  |  1992-08-30  |  1.6 KB  |  50 lines

  1. Newsgroups: comp.os.minix
  2. Path: sparky!uunet!mcsun!Germany.EU.net!uniol!Frank.Neumann
  3. From: Frank.Neumann@arbi.informatik.uni-oldenburg.de (Frank Neumann)
  4. Subject: Re: Help with vfprintf
  5. Organization: University of Oldenburg, Germany
  6. Date: Mon, 31 Aug 1992 01:41:06 GMT
  7. Message-ID: <1992Aug31.014358.188@arbi.Informatik.Uni-Oldenburg.DE>
  8. References: <1992Aug29.193752.3921@udel.edu>
  9. Sender: news@arbi.Informatik.Uni-Oldenburg.DE
  10. Lines: 38
  11.  
  12.  
  13. Hi there,
  14. Victor Moreno wrote:
  15.  
  16. >I was trying to compile the ksh shell for MINIX when the compiler
  17. >complained about the function
  18.  
  19. >        vfprintf
  20.  
  21. >It is defined in stdio.h, but it is not in the library libc.a and I can't
  22. >find the source code where it should be. The only one similar is vsprintf.
  23.  
  24. This is from ftp.thp.uni-koeln.de, /pub/minix/portable/vfprintf.c:
  25. ---------- cut here ------------------------------------------
  26. #include <lib.h>
  27. #include <stdarg.h>
  28. #include <stdio.h>
  29.  
  30. int vfprintf(file, fmt, args) FILE *file; char *fmt; va_list args;
  31. {
  32.   _doprintf(file, fmt, args);
  33. }
  34. ------------ cut here again -----------------------------------
  35.  
  36. Just compile this with
  37. cc vfprintf.c -c -o vfprintf.o
  38. and link it to the rest. That should be all.
  39.  
  40. Bye,
  41. Frank
  42. -- 
  43. + Frank Neumann, Hauptstr. 107, 2900 Oldenburg, FRG   The Amiga is it.   +
  44. +       InterNet: Frank.Neumann@arbi.informatik.uni-oldenburg.de         +
  45. +       UUCP: neumann@uniol.uucp   \\//    InHouse:amigo@faramir         +
  46. + Zerberus: neumann@uniol.zer BitNet:295391@DOLUNI1.BITNET IRC: Franky   +
  47. + "All die Manta-Computer-User - Hauptsache vorne leuchtet 33Mhz auf..." +
  48. +        - Stefan Schulze in fido.ger.amiga, 04.08.1992                  +
  49.  
  50.