home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / libsrc~1.z / libsrc~1 / fscanf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-28  |  411 b   |  24 lines

  1. /* from Dale Schumacher's dLibs */
  2.  
  3. #define __SRC__    /* to keep compiler happy about proto */
  4. #include <stdio.h>
  5. #include <ansi.h>
  6.  
  7. extern int fgetc(), fungetc();
  8. extern int _scanf();
  9.  
  10. int fscanf(fp, fmt, arg)
  11. FILE *fp;
  12. _CONST char *fmt;
  13. char *arg;
  14. {
  15.     return(_scanf(fp, fgetc, fungetc, fmt, &arg));
  16. }
  17.  
  18. int scanf(fmt, arg)
  19. _CONST char *fmt;
  20. char *arg;
  21. {
  22.     return(_scanf(stdin, fgetc, fungetc, fmt, &arg));
  23. }
  24.