Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewse!cbnewsd!bamford From: bamford@cbnewsd.att.com (harold.e.bamford) Newsgroups: comp.unix.programmer Subject: Re: What does index() and rindex() do ?? Keywords: index rindex Message-ID: <1991Mar27.211252.781@cbnewsd.att.com> Date: 27 Mar 91 21:12:52 GMT References: <375@bibsyst.UUCP> Distribution: na Organization: AT&T Bell Laboratories Lines: 11 In article <375@bibsyst.UUCP> tore@bibsyst.UUCP (Tore Morkemo) writes: >Could anyone please tell me what rindex() and index() are supposed to do ?? > >I found these in a bsd-source and since I'm on a SYSV I can't find them. #define index(a,b) strchr(a,b) #define rindex(a,b) strrchr(a,b) Good luck. -- Harold