[net.unix] rindex

mrm@datagen.UUCP (09/26/83)

rindex() is the v7 name, whereas strrchr() is the III/V name (renamed so that
the string routines would all begin with `str').  They return exactly the same
information (ie, address of the last occurrence of a character within a string
or NULL if the character does not occur).  If you want to not change the v7
source, you can do:

	cc -Drindex=strrchr ...

which maps all occurrences of `rindex' outside of strings to `strrchr'.

	Michael Meissner	Data General Corporation
	...{allegra decvax!ittvax, rocky2}!datagen!mrm