rindex()
mrm at datagen.UUCP
mrm at datagen.UUCP
Mon Sep 26 17:36:03 AEST 1983
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
More information about the Comp.unix
mailing list