Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!sunybcs!bingvaxu!leah!itsgw!steinmetz!ge-dab!codas!ateng!chip From: chip@ateng.UUCP (Chip Salzenberg) Newsgroups: comp.lang.c Subject: Re: ltoa Message-ID: <117@ateng.UUCP> Date: Wed, 2-Dec-87 09:31:30 EST Article-I.D.: ateng.117 Posted: Wed Dec 2 09:31:30 1987 Date-Received: Tue, 8-Dec-87 05:41:58 EST References: <10594@brl-adm.ARPA> Reply-To: chip@ateng.UUCP (Chip Salzenberg) Organization: A T Engineering, Tampa, FL Lines: 14 In article <10594@brl-adm.ARPA>, PEPRBV%CFAAMP.BITNET@wiscvm.wisc.EDU (Bob Babcock) writes: >rindex(string,cc) is the same as strrchr, finds last occurrence of >character cc in string. Except for the fine point that strchr() and strrchr(), when given a second parameter of zero, they return the address of the string's terminating NUL ('\0'). I don't think that this behavior can be expected of index() and rindex(). -- Chip Salzenberg "chip@ateng.UUCP" or "{codas,uunet}!ateng!chip" A T Engineering My employer's opinions are not mine, but these are. "Gentlemen, your work today has been outstanding. I intend to recommend you all for promotion -- in whatever fleet we end up serving." - JTK