# 2.11BSD#431 - /usr/include/string.h

##### Macros

    NULL              X

       1: /*
       2:  * Copyright (c) 1985 Regents of the University of California.
       3:  * All rights reserved.  The Berkeley software License Agreement
       4:  * specifies the terms and conditions for redistribution.
       5:  *
       6:  *	@(#)string.h	5.1.3 (2.11BSD) 1996/3/20
       7:  */
       8:
       9: #include <sys/types.h>
      10:
      11: #ifndef NULL
      12: #define NULL    0
      13: #endif
      14:
      15: extern  char    *strcat(), *strncat(), *strcpy(), *strncpy(), *index();
      16: extern  char    *rindex(), *strstr(), *syserrlst();
      17: extern  int strcmp(), strncmp(), strcasecmp(), strncasecmp(), strlen();
      18: extern  int memcmp();
      19:
      20: extern  char    *memccpy(), *memchr(), *memcpy(), *memset(), *strchr();
      21: extern  char    *strdup(), *strpbrk(), *strrchr(), *strsep(), *strtok();
      22: extern  size_t  strcspn(), strspn();
      23:
      24: extern  char    *strerror();

#### Defined macros

NULL defined in line 12; used 874 times

- in line 11
- in /usr/src/bin/ar/archive.c line 119
- in /usr/src/bin/ar/misc.c line 78, 100
- in /usr/src/bin/ar/replace.c line 133, 139
- in /usr/src/bin/chpass/util.c line 36, 82-85(2)
- in /usr/src/bin/login/login.c line 172, 209, 289, 335
- in /usr/src/bin/ls/ls.c line 266-267(2), 493
- in /usr/src/bin/ls/stat_flags.c line 49, 69, 82(2), 116
- in /usr/src/bin/make/doname.c line 40, 93, 127-130(2), 166, 228, 285, 312, 343
- in /usr/src/bin/nm/nm.c line 92, 119, 170, 183-185(2), 305
- in /usr/src/bin/passwd/passwd.c line 248, 260
- in /usr/src/bin/ping/ping.c line 180, 349-350(2), 425, 468
- in /usr/src/bin/rmail.c line 67-71(2), 87, 99
- in /usr/src/bin/sysctl/sysctl.c line 196, 219, 463, 486, 512, 559, 566, 575, 598-603(2)
- in /usr/src/bin/test/test.c line 114, 120-123(2), 137, 183, 190, 209, 238-239(2), 256, 275, 335, 534
- in /usr/src/games/hack/hack.main.c line 467, 482
- in /usr/src/games/hack/hack.mon.c line 346-347(2)
- in /usr/src/games/hack/hack.unix.c line 112-116(3)
- in /usr/src/lib/libc/gen/getttyent.c line 17, 24, 32-34(2), 84, 95-102(5), 114
- in /usr/src/lib/libc/gen/syslog.c line 61, 127-133(3), 200(2), 213
- in /usr/src/lib/libc/net/res_query.c line 63(2), 174, 198, 227-228(3), 247
- in /usr/src/lib/libc/stdlib/getopt.c line 94
- in /usr/src/lib/libc/string/strstr.c line 59
- in /usr/src/libexec/comsat/comsat.c line 50, 101, 107(2), 117, 177, 202, 213
- in /usr/src/libexec/fingerd/fingerd.c line 130
- in /usr/src/libexec/ftpd/ftpd.c line 128-129(2), 271, 293, 346, 355-361(3), 367-372(4), 380, 407, 423, 429-432(2), 520, 550, 570, 577, 610, 636, 657, 685, 703-708(2), 721, 772, 1092, 1169, 1287-1302(6), 1323, 1329, 1339-1341(2), 1352-1355(2), 1372-1375(2), 1391, 1399
- in /usr/src/libexec/ftpd/popen.c line 51-65(6), 74-77(2), 88-90(2), 125, 151-153(2)
- in /usr/src/libexec/identd/src/identd.c line 101-102(2), 116-118(3), 240, 283, 309, 426, 434, 555, 579, 676-678(4), 685-687(6)
- in /usr/src/libexec/popper/pop_dropcopy.c line 58, 148
- in /usr/src/libexec/popper/pop_dropinfo.c line 45, 67
- in /usr/src/libexec/popper/pop_get_command.c line 33, 39(2), 56
- in /usr/src/libexec/popper/pop_get_subcommand.c line 23
- in /usr/src/libexec/popper/pop_pass.c line 29-34(2)
- in /usr/src/libexec/popper/pop_updt.c line 68
- in /usr/src/libexec/rlogind/rlogind.c line 211, 223, 528, 623(2), 633
- in /usr/src/libexec/rshd/rshd.c line 160, 172, 243, 256, 286, 446(2), 456
- in /usr/src/libexec/tcpd/tli-sequent.c line 82
- in /usr/src/libexec/tftpd/tftpd.c line 282
- in /usr/src/local/afio/afio.c line 442, 566(2), 592-599(3), 742-746(2), 929-933(2), 964, 1229-1232(3), 1274, 1311-1314(4), 1320-1324(2), 1361, 1405, 1510, 1535, 1552, 1837, 1892, 1909, 2063, 2361, 2471, 2743, 2766
- in /usr/src/local/zmodem/rz.c line 273, 346-350(2), 452, 778, 803, 859, 1030, 1109, 1481
- in /usr/src/local/zmodem/sz.c line 522-526(2), 710, 1303
- in /usr/src/new/PORT/hexdump/display.c line 218-224(3)
- in /usr/src/new/PORT/hexdump/parse.c line 422-423(2)
- in /usr/src/new/ansi/vmsprep.c line 61-63(2), 87, 129
- in /usr/src/new/jove/io.c line 538, 1388
- in /usr/src/new/jove/mac.c line 237
- in /usr/src/new/jove/term.c line 133, 139
- in /usr/src/new/jove/util.c line 151
- in /usr/src/new/nntp/inews/inews.c line 54, 63, 103, 163, 171, 213
- in /usr/src/new/nntp/server/fakesyslog.c line 44-46(2)
- in /usr/src/old/compact/uncompact.c line 36, 65, 78, 87, 110-116(3), 167, 191, 206-207(2), 227
- in /usr/src/old/shortc/shortc.c line 108, 330
- in /usr/src/sbin/mount/getmntopts.c line 60-63(4), 72
- in /usr/src/sbin/quotacheck/quotacheck.c line 154, 188-189(2), 199, 227, 263, 275, 394, 427, 447, 500-501(2), 514-516(2)
- in /usr/src/share/zoneinfo/zic.c line 216, 232, 243, 254, 260, 267, 294, 324, 338, 354-355(2), 373, 383, 398, 415, 436, 516, 568, 579, 586, 597, 649, 714, 722, 765, 856, 881, 901, 934, 950, 969, 1013-1016(2), 1249, 1308-1313(4), 1319-1324(4), 1336-1337(2), 1359, 1514
- in /usr/src/ucb/ctags.c line 173, 227, 238, 285, 314, 549, 631, 638, 689, 695, 706, 910, 962
- in /usr/src/ucb/finger/util.c line 62, 88-92(3), 117, 142-149(3), 157, 195-201(3), 207-211(3), 224, 247, 260-264(2), 270
- in /usr/src/ucb/lock/lock.c line 70, 103, 134, 178
- in /usr/src/ucb/man/apropos.c line 51
- in /usr/src/ucb/man/man.c line 152-156(4), 169, 409
- in /usr/src/ucb/strcompact.c line 195
- in /usr/src/ucb/symcompact.c line 208
- in /usr/src/ucb/symdump.c line 63, 83
- in /usr/src/ucb/symorder.c line 266
- in /usr/src/ucb/telnet.c line 2351
- in /usr/src/usr.bin/file.c line 51-55(2)
- in /usr/src/usr.bin/m4/eval.c line 557, 578, 646-648(2), 670, 677
- in /usr/src/usr.bin/m4/main.c line 197, 218-221(2)
- in /usr/src/usr.bin/m4/misc.c line 152-154(2), 181, 191, 203
- in /usr/src/usr.bin/mkerrlst/mkerrlst.c line 148, 156
- in /usr/src/usr.bin/printf/printf.c line 145(2), 187(2), 213, 228(2), 364
- in /usr/src/usr.bin/ranlib/touch.c line 84
- in /usr/src/usr.bin/uucp/acucntrl.c line 169, 194, 403-410(3), 417, 430, 436, 457, 504-505(2), 540, 550-552(2)
- in /usr/src/usr.bin/uucp/pk1.c line 53-54(2), 62, 69, 76, 83, 94, 202
- in /usr/src/usr.bin/whereis/whereis.c line 75(2), 81-85(3), 97, 107
- in /usr/src/usr.lib/libI77/wsnmle.c line 61
- in /usr/src/usr.lib/libident/ident.c line 132-133(2)
- in /usr/src/usr.lib/libident/support.c line 26-31(2)
- in /usr/src/usr.sbin/chown/chown.c line 70-73(2), 81, 137, 144
- in /usr/src/usr.sbin/cron/misc.c line 240-244(2), 255, 426-427(2), 553-558(2)
- in /usr/src/usr.sbin/lpr/filters/necf.c line 30, 39
- in /usr/src/usr.sbin/named/named/db_dump.c line 54, 68, 87, 96, 154-157(2), 192-195(3), 205-206(2), 227-235(3), 258, 264-265(2), 303-304(2), 311, 478, 509-510(2)
- in /usr/src/usr.sbin/named/named/db_load.c line 133, 387-390(2), 837-838(2), 864, 871-886(4), 895, 917, 937, 952, 977, 1007
- in /usr/src/usr.sbin/named/named/db_reload.c line 45-50(4), 67-71(3), 89-91(2), 99-103(2)
- in /usr/src/usr.sbin/named/named/db_update.c line 57-63(3), 87-89(3), 160, 172-178(3), 226-228(2), 249-254(3), 263
- in /usr/src/usr.sbin/named/named/ns_forw.c line 112, 173, 193, 203, 293-298(3), 344, 505, 513
- in /usr/src/usr.sbin/named/named/ns_init.c line 60, 67-77(4), 186, 223, 283, 312, 350, 422(2), 438, 453-459(3), 468
- in /usr/src/usr.sbin/named/named/ns_main.c line 111-113(3), 122-123(2), 232, 255, 326, 345, 361, 377, 406, 424-425(2), 431, 441, 456-461(3), 472-473(2), 485-486(2), 495-496(2), 504, 513, 519, 633, 642-644(3), 698, 754, 789, 800, 944, 963-967(2), 1073
- in /usr/src/usr.sbin/named/named/ns_maint.c line 104, 174(2), 200, 212, 229, 241, 300(2), 328, 340, 350, 362, 488, 498, 509-514(2), 584-588(3), 612-613(3), 622
- in /usr/src/usr.sbin/named/named/ns_req.c line 125, 171, 186-191(2), 201(2), 213, 237, 318, 331(2), 430-433(2), 439, 453-454(2), 553, 835, 843, 918, 974, 997-999(2), 1011-1016(2), 1111-1113(2), 1139, 1148-1149(2), 1159-1162(2), 1247
- in /usr/src/usr.sbin/named/named/ns_resp.c line 73, 262, 321, 407, 464, 491-493(2), 609, 617(2), 901, 915-918(2), 982, 1008, 1071, 1095-1097(2), 1130-1131(2), 1151, 1157-1162(3), 1228-1235(3), 1248-1250(2), 1290-1293(2), 1301, 1312, 1354-1359(3), 1365-1370(3), 1376, 1393-1394(2), 1427, 1467, 1596, 1625-1627(2)
- in /usr/src/usr.sbin/named/named/ns_sort.c line 42-46(2), 66, 93, 112, 152-155(2)
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 141, 187, 212, 245, 286-293(3), 301, 426, 446, 455-457(3), 513-515(2), 876, 916
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 97, 141, 215-218(2), 225, 288, 494, 569, 670, 683, 731, 754, 834, 848, 860, 866, 876, 884, 893-898(2), 948, 966-969(2), 1040, 1097-1103(4)
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 93-95(2), 152, 196-197(2), 216, 232-234(2), 302-303(2), 313
- in /usr/src/usr.sbin/ntp/ntp.c line 151, 175-183(3)
- in /usr/src/usr.sbin/ntp/ntp_proto.c line 269, 306, 346, 429-431(2), 663, 778, 804, 962, 984, 997, 1166, 1194
- in /usr/src/usr.sbin/ntp/ntpd.c line 312, 320, 429, 451, 458, 502, 561-562(4), 571, 578, 585, 597-602(3), 615-618(2), 624, 661-663(2), 732, 827, 896, 938-941(2), 1012, 1039, 1135, 1208, 1302
- in /usr/src/usr.sbin/ntp/ntpdc.c line 265
- in /usr/src/usr.sbin/repquota/repquota.c line 111, 155, 250, 304
- in /usr/src/usr.sbin/rwhod/rwhod.c line 118, 309, 330, 359-370(4), 377
- in /usr/src/usr.sbin/sendmail/aux/rmail.c line 82-86(2), 102, 114
- in /usr/src/usr.sbin/sendmail/src/err.c line 53, 68, 156, 181, 262, 269, 325-330(2), 338, 344

#### Usage of this include

string.h used 152 times

- in /usr/include/strings.h line 36
- in /usr/ingres/source/monitor/quit.c line 7
- in /usr/src/bin/ar/append.c line 45
- in /usr/src/bin/ar/ar.c line 50
- in /usr/src/bin/ar/archive.c line 48
- in /usr/src/bin/ar/contents.c line 49
- in /usr/src/bin/ar/extract.c line 48
- in /usr/src/bin/ar/misc.c line 46
- in /usr/src/bin/ar/replace.c line 49
- in /usr/src/bin/csh/sh.exec.c line 12
- in /usr/src/bin/csh/sh.exec2.c line 10
- in /usr/src/bin/csh/sh.proc.c line 14
- in /usr/src/bin/df.c line 56
- in /usr/src/bin/disklabel/disklabel.c line 55
- in /usr/src/bin/hostid.c line 18
- in /usr/src/bin/hostname/hostname.c line 49
- in /usr/src/bin/ls/stat_flags.c line 46
- in /usr/src/bin/mail.c line 15
- in /usr/src/bin/mkdir.c line 46
- in /usr/src/bin/nm/nm.c line 15
- in /usr/src/bin/ping/ping.c line 79
- in /usr/src/bin/ps.c line 22
- in /usr/src/bin/rcp.c line 40
- in /usr/src/bin/rmail.c line 15
- in /usr/src/bin/sysctl/sysctl.c line 59
- in /usr/src/bin/tcsh/sh.h line 222
- in /usr/src/bin/test/test.c line 56
- in /usr/src/bin/who.c line 20
- in /usr/src/bin/write.c line 15
- in /usr/src/games/atc/include.h line 26
- in /usr/src/games/hack/hack.h line 9
- in /usr/src/games/mille/save.c line 2
- in /usr/src/lib/libc/gen/disklabel.c line 47
- in /usr/src/lib/libc/gen/fstab.c line 42
- in /usr/src/lib/libc/gen/getgrouplist.c line 42
- in /usr/src/lib/libc/gen/getlogin.c line 42
- in /usr/src/lib/libc/gen/getpwent.c line 23
- in /usr/src/lib/libc/gen/perror.c line 43
- in /usr/src/lib/libc/gen/strftime.c line 41
- in /usr/src/lib/libc/gen/syslog.c line 48
- in /usr/src/lib/libc/gen/timezone.c line 11
- in /usr/src/lib/libc/net/rcmd.c line 25
- in /usr/src/lib/libc/net/ruserpass.c line 17
- in /usr/src/lib/libc/stdlib/getopt.c line 40
- in /usr/src/lib/libc/string/strcspn.c line 42
- in /usr/src/lib/libc/string/strerror.c line 38
- in /usr/src/lib/libc/string/strpbrk.c line 39
- in /usr/src/lib/libc/string/strsep.c line 35
- in /usr/src/lib/libc/string/strspn.c line 39
- in /usr/src/lib/libc/string/strstr.c line 41
- in /usr/src/lib/libc/string/strtok.c line 38
- in /usr/src/libexec/acctd/acctd.c line 14
- in /usr/src/libexec/ftpd/popen.c line 30
- in /usr/src/libexec/identd/src/identd.c line 72
- in /usr/src/libexec/identd/src/itest.c line 24
- in /usr/src/libexec/identd/src/parse.c line 45
- in /usr/src/libexec/rshd/rshd.c line 53
- in /usr/src/libexec/tcpd/eval.c line 28
- in /usr/src/libexec/tcpd/hosts_access.c line 35
- in /usr/src/libexec/tcpd/inetcf.c line 16
- in /usr/src/libexec/tcpd/misc.c line 16
- in /usr/src/libexec/tcpd/options.c line 49
- in /usr/src/libexec/tcpd/percent_m.c line 13
- in /usr/src/libexec/tcpd/percent_x.c line 21
- in /usr/src/libexec/tcpd/rfc931.c line 25
- in /usr/src/libexec/tcpd/scaffold.c line 22
- in /usr/src/libexec/tcpd/shell_cmd.c line 22
- in /usr/src/libexec/tcpd/socket.c line 31
- in /usr/src/libexec/tcpd/tcpd.c line 26
- in /usr/src/libexec/tcpd/tcpdchk.c line 32
- in /usr/src/libexec/tcpd/tcpdmatch.c line 31
- in /usr/src/libexec/tcpd/tli-sequent.c line 31
- in /usr/src/libexec/tcpd/tli.c line 39
- in /usr/src/libexec/tcpd/try-from.c line 22
- in /usr/src/libexec/tcpd/update.c line 24
- in /usr/src/libexec/tftpd/tftpd.c line 51
- in /usr/src/local/afio/afio.c line 37
- in /usr/src/local/mp/mp.h line 26
- in /usr/src/local/zmodem/genie.c line 13
- in /usr/src/local/zmodem/rbsb.c line 48
- in /usr/src/new/PORT/hexdump/display.c line 30
- in /usr/src/new/PORT/hexdump/parse.c line 28
- in /usr/src/new/PORT/perl.1.0.16/hints/t001.c line 19
- in /usr/src/new/jove/jove.h line 25
- in /usr/src/new/kermit5.188/ckcdeb.h line 1235
- in /usr/src/new/nntp/inews/inews.c line 23
- in /usr/src/new/nntp/server/common.h line 30
- in /usr/src/new/nntp/server/fakesyslog.c line 15
- in /usr/src/sbin/mount/getmntopts.c line 44
- in /usr/src/sbin/mount/mount.c line 51
- in /usr/src/sbin/mount/mount_ufs.c line 48
- in /usr/src/sbin/quotacheck/preen.c line 42
- in /usr/src/sbin/quotacheck/quotacheck.c line 63
- in /usr/src/sbin/shutdown/shutdown.c line 22
- in /usr/src/sbin/umount/umount.c line 48
- in /usr/src/ucb/Mail/def.h line 41
- in /usr/src/ucb/ftp/cmds.c line 38
- in /usr/src/ucb/ftp/ruserpass.c line 28
- in /usr/src/ucb/man/man.c line 34
- in /usr/src/ucb/quota.c line 23
- in /usr/src/ucb/rdist/defs.h line 12
- in /usr/src/ucb/strcompact.c line 34
- in /usr/src/ucb/symcompact.c line 42
- in /usr/src/ucb/symdump.c line 31
- in /usr/src/ucb/symorder.c line 28
- in /usr/src/ucb/talk/get_names.c line 15
- in /usr/src/ucb/talk/io.c line 20
- in /usr/src/ucb/tcopy.c line 21
- in /usr/src/ucb/w.c line 16
- in /usr/src/ucb/window/ww.h line 14
- in /usr/src/usr.bin/file.c line 14
- in /usr/src/usr.bin/id/id.c line 50
- in /usr/src/usr.bin/m4/eval.c line 50
- in /usr/src/usr.bin/m4/look.c line 49
- in /usr/src/usr.bin/m4/main.c line 56
- in /usr/src/usr.bin/m4/misc.c line 44
- in /usr/src/usr.bin/mkerrlst/mkerrlst.c line 32
- in /usr/src/usr.bin/printf/printf.c line 50
- in /usr/src/usr.bin/ranlib/misc.c line 45
- in /usr/src/usr.bin/ranlib/touch.c line 49
- in /usr/src/usr.bin/uucp/acucntrl.c line 69
- in /usr/src/usr.bin/uucp/pk1.c line 10
- in /usr/src/usr.bin/uucp/uucp.h line 6
- in /usr/src/usr.bin/whereis/whereis.c line 49
- in /usr/src/usr.bin/xinstall/xinstall.c line 54
- in /usr/src/usr.lib/libU77/gerror_.c line 23
- in /usr/src/usr.lib/libU77/perror_.c line 21
- in /usr/src/usr.lib/libident/id_open.c line 18
- in /usr/src/usr.lib/libident/id_parse.c line 13, 19
- in /usr/src/usr.lib/libident/id_query.c line 17
- in /usr/src/usr.lib/libident/ident.c line 16
- in /usr/src/usr.lib/libident/support.c line 12
- in /usr/src/usr.sbin/catman/catman.c line 26
- in /usr/src/usr.sbin/cron/externs.h line 20
- in /usr/src/usr.sbin/cron/misc.c line 32
- in /usr/src/usr.sbin/edquota/edquota.c line 58
- in /usr/src/usr.sbin/inetd/inetd.c line 109
- in /usr/src/usr.sbin/lpr/filters/necf.c line 13
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 41
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 54
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 49
- in /usr/src/usr.sbin/quotaon/quotaon.c line 53
- in /usr/src/usr.sbin/repquota/repquota.c line 55
- in /usr/src/usr.sbin/rmt/rmt.c line 26
- in /usr/src/usr.sbin/rwhod/rwhod.c line 29
- in /usr/src/usr.sbin/sendmail.MX/src/sendmail.h line 35
- in /usr/src/usr.sbin/sendmail/aux/rmail.c line 31
- in /usr/src/usr.sbin/sendmail/src/err.c line 18
- in /usr/src/usr.sbin/sendmail/src/sendmail.h line 35
- in /usr/src/usr.sbin/sysgen/sysgen.c line 9
- in /usr/src/usr.sbin/syslogd/syslogd.c line 49

Last modified: 1996-03-21 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 841 |