Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!uunet!mcsun!unido!logixwi!jpm From: jpm@logixwi.uucp (Jan-Piet Mens @ Logix GmbH, Wiesbaden) Newsgroups: comp.unix.programmer Subject: Re: What does index() and rindex() do ?? Keywords: index rindex Message-ID: <1991Mar28.085014.5983@logixwi.uucp> Date: 28 Mar 91 08:50:14 GMT References: <375@bibsyst.UUCP> Reply-To: jpm@logixwi.UUCP (Jan-Piet Mens) Organization: Logix GmbH, Wiesbaden, W-Germany Lines: 13 In article <375@bibsyst.UUCP> tore@bibsyst.UUCP (Tore Morkemo) writes: >Could anyone please tell me what rindex() and index() are supposed to do ?? Index() does the same as strchr() on SYS5, and rindex() is strrchr(). #define rindex strrchr #define index strchr Regards, JP -- Jan-Piet Mens, Logix GmbH jpm@logixwi.UUCP Moritzstr. 50, D-6200 Wiesbaden ...!uunet!mcsun!unido!logixwi!jpm