# 2.11BSD#431 - /usr/src/lib/libc/stdio/scanf.c

##### Functions

    fscanf            X
    scanf             X
    sscanf            X

       1: #if defined(LIBC_SCCS) && !defined(lint)
       2: static char sccsid[] = "@(#)scanf.c	5.2 (Berkeley) 3/9/86";
       3: #endif LIBC_SCCS and not lint
       4:
       5: #include    <stdio.h>
       6:
       7: scanf(fmt, args)
       8: char *fmt;
       9: {
      10:     return(_doscan(stdin, fmt, &args));
      11: }
      12:
      13: fscanf(iop, fmt, args)
      14: FILE *iop;
      15: char *fmt;
      16: {
      17:     return(_doscan(iop, fmt, &args));
      18: }
      19:
      20: sscanf(str, fmt, args)
      21: register char *str;
      22: char *fmt;
      23: {
      24:     FILE _strbuf;
      25:
      26:     _strbuf._flag = _IOREAD|_IOSTRG;
      27:     _strbuf._ptr = _strbuf._base = str;
      28:     _strbuf._cnt = 0;
      29:     while (*str++)
      30:         _strbuf._cnt++;
      31:     _strbuf._bufsiz = _strbuf._cnt;
      32:     return(_doscan(&_strbuf, fmt, &args));
      33: }

#### Defined functions

fscanf defined in line 13; used 64 times

- in /usr/src/bin/tar.c line 1029
- in /usr/src/games/atc/log.c line 94
- in /usr/src/games/banner.c line 1027
- in /usr/src/games/hack/hack.end.c line 268, 559
- in /usr/src/games/phantasia/main.c line 95
- in /usr/src/games/sail/sync.c line 140, 173
- in /usr/src/games/snake/snake.c line 487
- in /usr/src/games/warp/init.c line 255-260(2)
- in /usr/src/libexec/identd/src/parse.c line 206, 214, 260, 307, 328, 410
- in /usr/src/local/welcome/welcome.c line 114
- in /usr/src/new/PORT/B/src/bed/edit.c line 227
- in /usr/src/new/ansi/vmsprep.c line 62, 86
- in /usr/src/new/nntp/support/mkgrdates.c line 70
- in /usr/src/new/nntp/xfer/nntpxfer.c line 119
- in /usr/src/new/notes/src/buildnf.c line 159
- in /usr/src/new/notes/src/newsoutput.c line 256
- in /usr/src/old/num.c line 47
- in /usr/src/sbin/routed/startup.c line 238
- in /usr/src/sys/pdpstand/makesimtape.c line 82
- in /usr/src/sys/pdpstand/maketape.c line 50
- in /usr/src/ucb/msgs/msgs.c line 213, 363
- in /usr/src/ucb/strcompact.c line 115
- in /usr/src/usr.bin/at/atq.c line 272, 301, 353, 485-490(2)
- in /usr/src/usr.bin/at/atrm.c line 343, 372
- in /usr/src/usr.bin/at/atrun.c line 180-183(4)
- in /usr/src/usr.bin/learn/selsub.c line 51
- in /usr/src/usr.bin/plot/atoplot.c line 129
- in /usr/src/usr.bin/tsort.c line 56
- in /usr/src/usr.sbin/accton/accton.c line 53, 167
- in /usr/src/usr.sbin/cron/misc.c line 267
- in /usr/src/usr.sbin/ntp/ntpd.c line 740-746(3), 757, 768, 776, 785, 794, 803, 853, 860-875(4), 1013

scanf defined in line 7; used 22 times

- in /usr/src/games/factor.c line 21
- in /usr/src/games/primes.c line 69
- in /usr/src/games/sail/pl_main.c line 54, 123, 186
- in /usr/src/games/snake/snake.c line 183
- in /usr/src/games/trek/getpar.c line 28, 52, 106-107(2), 183-184(2)
- in /usr/src/games/trek/main.c line 174
- in /usr/src/games/warp/sm.c line 35
- in /usr/src/ucb/vgrind/retest.c line 29
- in /usr/src/usr.bin/graph/graph.c line 619, 627, 634, 643-644(2)
- in /usr/src/usr.lib/libtermlib/tc3.c line 45
- in /usr/src/usr.sbin/quot/quot.c line 148

sscanf defined in line 20; used 225 times

- in /usr/src/bin/disklabel/disklabel.c line 808
- in /usr/src/bin/hostid.c line 46
- in /usr/src/bin/ping/ping.c line 959
- in /usr/src/bin/rmail.c line 62, 88
- in /usr/src/bin/sysctl/sysctl.c line 336
- in /usr/src/bin/tar.c line 418-426(6)
- in /usr/src/games/battlestar/cypher.c line 258-286(8)
- in /usr/src/games/btlgammon/btlgammon.c line 162, 332
- in /usr/src/games/factor.c line 17
- in /usr/src/games/phantasia/fight.c line 365
- in /usr/src/games/phantasia/func0.c line 272, 403
- in /usr/src/games/phantasia/func1.c line 877
- in /usr/src/games/phantasia/func2.c line 40, 120
- in /usr/src/games/phantasia/main.c line 196, 385, 435
- in /usr/src/games/primes.c line 63
- in /usr/src/games/snake/snake.c line 108
- in /usr/src/lib/libc/ns/ns_addr.c line 81, 89, 97, 106, 161-166(2)
- in /usr/src/libexec/identd/testdir/test1.c line 119
- in /usr/src/libexec/tcpd/options.c line 293, 321, 358, 409
- in /usr/src/libexec/tcpd/rfc931.c line 145
- in /usr/src/local/afio/afio.c line 831
- in /usr/src/local/cxref/cxrfilt.c line 158-163(2), 169, 196, 253, 287
- in /usr/src/local/cxref/fmtxref.c line 143
- in /usr/src/local/qterm/qterm.c line 719
- in /usr/src/local/zmodem/minirb.c line 160
- in /usr/src/local/zmodem/rz.c line 766
- in /usr/src/new/PORT/B/src/bed/demo.c line 143-145(2)
- in /usr/src/new/PORT/B/src/bed/spos.c line 48
- in /usr/src/new/ansi/ansitape.c line 109, 190, 488, 558-560(2)
- in /usr/src/new/kermit5.188/ckutio.c line 2215
- in /usr/src/new/nntp/common/clientlib.c line 302
- in /usr/src/new/nntp/inews/uname.c line 87
- in /usr/src/new/nntp/server/access.c line 168
- in /usr/src/new/nntp/server/active.c line 166
- in /usr/src/new/notes/src/asearch.c line 58
- in /usr/src/new/notes/src/datein.c line 64
- in /usr/src/new/notes/src/dropt.c line 143, 225, 274
- in /usr/src/new/notes/src/getnet.c line 154
- in /usr/src/new/notes/src/ldmisc.c line 26
- in /usr/src/new/notes/src/loadem.c line 75, 132, 147, 174, 193, 292, 300, 325, 344
- in /usr/src/new/notes/src/loadnf.c line 140, 158, 168-172(2), 185-253(18), 259, 271, 283-287(2)
- in /usr/src/new/notes/src/newsinput.c line 390, 462, 596-599(2), 720-722(2)
- in /usr/src/new/notes/src/parse.c line 23
- in /usr/src/new/notes/src/startup.c line 162
- in /usr/src/new/pathalias/arpatxt.c line 138
- in /usr/src/new/pathalias/local.c line 60
- in /usr/src/new/rcs/src/sccstorcs.c line 131
- in /usr/src/new/vmsbackup/vmsbackup.c line 696-706(4), 734, 789
- in /usr/src/old/dump/dumpitime.c line 205
- in /usr/src/old/uudiff/run1.c line 69
- in /usr/src/old/v6/v6.c line 68
- in /usr/src/sbin/dump/dumpitime.c line 168
- in /usr/src/sbin/gt307/gt307.c line 207
- in /usr/src/share/zoneinfo/scheck.c line 55
- in /usr/src/share/zoneinfo/zic.c line 657-661(3), 893, 916, 975
- in /usr/src/sys/autoconfig/do_config.c line 298
- in /usr/src/sys/autoconfig/read_dtab.c line 59
- in /usr/src/ucb/Mail/fmt.c line 86-90(2)
- in /usr/src/ucb/PORT/pascal/pxp/version.c line 33
- in /usr/src/ucb/ftp/cmds.c line 588, 2154
- in /usr/src/ucb/msgs/msgs.c line 666
- in /usr/src/usr.bin/at/atq.c line 407
- in /usr/src/usr.bin/learn/selunit.c line 64
- in /usr/src/usr.bin/plot/atoplot.c line 159
- in /usr/src/usr.bin/refer/deliv1.c line 28
- in /usr/src/usr.bin/refer/hunt6.c line 125
- in /usr/src/usr.bin/refer/hunt7.c line 38
- in /usr/src/usr.bin/refer/inv6.c line 34
- in /usr/src/usr.bin/refer/sortbib.c line 147, 173
- in /usr/src/usr.bin/struct/0.args.c line 99
- in /usr/src/usr.bin/uucp/cntrl.c line 518, 582
- in /usr/src/usr.bin/uucp/conn.c line 322, 595, 680, 689, 868, 963
- in /usr/src/usr.bin/uucp/fio.c line 489
- in /usr/src/usr.bin/uucp/gnxseq.c line 54
- in /usr/src/usr.bin/uucp/systat.c line 35, 113
- in /usr/src/usr.bin/uucp/uucpname.c line 202-207(3)
- in /usr/src/usr.bin/uucp/uudecode.c line 51
- in /usr/src/usr.bin/uucp/uulog.c line 78
- in /usr/src/usr.bin/uucp/uusend.c line 106
- in /usr/src/usr.bin/uucp/uuxqt.c line 209-215(3), 224, 361, 478, 508, 536
- in /usr/src/usr.lib/libident/id_parse.c line 118
- in /usr/src/usr.sbin/arp/arp.c line 84, 363
- in /usr/src/usr.sbin/cron/env.c line 130
- in /usr/src/usr.sbin/edquota/edquota.c line 418, 430
- in /usr/src/usr.sbin/htable/htable.c line 371
- in /usr/src/usr.sbin/named/named/db_dump.c line 681
- in /usr/src/usr.sbin/named/named/db_load.c line 757, 801
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 125, 161, 790, 833
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 462-467(3), 665, 726, 835, 849, 861, 867, 877, 885, 899, 1073
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 306-309(2)
- in /usr/src/usr.sbin/named/tools/nstest.c line 231, 260, 291
- in /usr/src/usr.sbin/pstat/pstat.c line 150
- in /usr/src/usr.sbin/sendmail.MX/src/readcf.c line 326
- in /usr/src/usr.sbin/sendmail/aux/rmail.c line 76, 103
- in /usr/src/usr.sbin/sendmail/src/readcf.c line 320
- in /usr/src/usr.sbin/sysgen/sysgen.c line 50
- in /usr/src/usr.sbin/trpt/trpt.c line 105
- in /usr/src/usr.sbin/trsp/trsp.c line 101

#### Defined variables

sccsid defined in line 2; never used

Last modified: 1986-03-10 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 599 |