questions on rindex()

gwyn at brl-vld gwyn at brl-vld
Thu Sep 22 05:37:13 AEST 1983


From:      Doug Gwyn (VLD/VMB) <gwyn at brl-vld>

strchr() is the new name for index(),
and strrchr() is the new name for rindex().
The names were changed somewhere before UNIX System III
in order to give all the string(3) functions names starting
with "str".

strrchr() searches for the rightmost occurrence of the
specified character in a null-terminated string and
returns a pointer to the found character, or NULL if the
character is not in the string.



More information about the Comp.unix mailing list