Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!seismo!hao!hplabs!sri-unix!gwyn@brl-vld From: gwyn@brl-vld@sri-unix.UUCP Newsgroups: net.unix Subject: Re: questions on rindex() Message-ID: <11912@sri-arpa.UUCP> Date: Wed, 21-Sep-83 15:37:13 EDT Article-I.D.: sri-arpa.11912 Posted: Wed Sep 21 15:37:13 1983 Date-Received: Mon, 26-Sep-83 08:09:13 EDT Lines: 12 From: Doug Gwyn (VLD/VMB) 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.