Use strchr instead of index, and strrchr instead of rindex because the str*chr
authorEirik Nygaard <eirikn@dragonflybsd.org>
Mon, 30 Aug 2004 18:06:50 +0000 (18:06 +0000)
committerEirik Nygaard <eirikn@dragonflybsd.org>
Mon, 30 Aug 2004 18:06:50 +0000 (18:06 +0000)
commit43b4d1bd9e0b32f7b034f9e023c3c3d224d2d131
treef6110b2ee36ef8b8cb7545d60f258ab2f3b266ab
parent0275560923f5a8e4ec89bf0ef8782753a08389bf
Use strchr instead of index, and strrchr instead of rindex because the str*chr
functions are standard compliant.

index() and rindex() do the same thing as repectively strchr() and strrchr() do.

Submitted by: Douwe Kiela <virtus@wanadoo.nl>
31 files changed:
usr.bin/chkey/chkey.c
usr.bin/cksum/cksum.c
usr.bin/compress/compress.c
usr.bin/finger/finger.c
usr.bin/hexdump/display.c
usr.bin/hexdump/hexdump.c
usr.bin/hexdump/hexsyntax.c
usr.bin/hexdump/parse.c
usr.bin/netstat/if.c
usr.bin/netstat/inet.c
usr.bin/netstat/inet6.c
usr.bin/netstat/iso.c
usr.bin/quota/quota.c
usr.bin/ranlib/misc.c
usr.bin/rlogin/rlogin.c
usr.bin/rpcgen/rpc_main.c
usr.bin/systat/devs.c
usr.bin/systat/netcmds.c
usr.bin/systat/netstat.c
usr.bin/talk/get_names.c
usr.bin/tftp/main.c
usr.bin/tftp/tftp.c
usr.bin/tr/str.c
usr.bin/tset/map.c
usr.bin/tset/term.c
usr.bin/tset/wrterm.c
usr.bin/window/lcmd1.c
usr.bin/window/lcmd2.c
usr.bin/window/main.c
usr.bin/window/ww.h
usr.bin/write/write.c