Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/26/83; site ihuxa.UUCP Path: utzoo!linus!decvax!harpo!gummo!whuxlb!pyuxll!eisx!npoiv!npois!hogpc!houxm!ihnp4!ihuxa!dixon From: dixon@ihuxa.UUCP Newsgroups: net.unix Subject: Re: question on rindex() Message-ID: <274@ihuxa.UUCP> Date: Mon, 19-Sep-83 18:14:36 EDT Article-I.D.: ihuxa.274 Posted: Mon Sep 19 18:14:36 1983 Date-Received: Tue, 20-Sep-83 16:12:39 EDT Organization: BTL Naperville, Il. Lines: 16 Thanks to all the people who replied so quickly to my request for info on rindex(). To summarize their replies: rindex() == strrchr() index() == strchr(). You can use #defines to cause the appropriate function to be used. E.g, #define index(a,b) strchr(a,b) #define rindex(a,b) strrchr(a,b). Index() and rindex() were a part of V7 UNIX but dropped in later releases of BTL UNIX. D A Dixon ihuxa!dixon