1: /*	@(#)scanf.c	2.1	SCCS id keyword	*/
   2: #include    <stdio.h>
   3: 
   4: scanf(fmt, args)
   5: char *fmt;
   6: {
   7:     return(_doscan(stdin, fmt, &args));
   8: }
   9: 
  10: fscanf(iop, fmt, args)
  11: FILE *iop;
  12: char *fmt;
  13: {
  14:     return(_doscan(iop, fmt, &args));
  15: }
  16: 
  17: sscanf(str, fmt, args)
  18: register char *str;
  19: char *fmt;
  20: {
  21:     FILE _strbuf;
  22: 
  23:     _strbuf._flag = _IOREAD|_IOSTRG;
  24:     _strbuf._ptr = _strbuf._base = str;
  25:     _strbuf._cnt = 0;
  26:     while (*str++)
  27:         _strbuf._cnt++;
  28:     return(_doscan(&_strbuf, fmt, &args));
  29: }

Defined functions

sscanf defined in line 17; used 73 times
Last modified: 1981-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 787
Valid CSS Valid XHTML 1.0 Strict