Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!ucsd!ucbvax!hplabs!hpda!hpcupt1!hpisod2!decot From: decot@hpisod2.cup.hp.com (Dave Decot) Newsgroups: comp.unix.programmer Subject: Re: What does index() and rindex() do ?? Message-ID: <30870016@hpisod2.cup.hp.com> Date: 28 Mar 91 21:59:02 GMT References: <375@bibsyst.UUCP> Organization: Hewlett Packard, Cupertino Lines: 20 > 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. They are supposed to do precisely what strrchr() and strchr() do, respectively. You can solve the problem by adding this: #define index strchr #define rindex strrchr to all the source files that use them (or to a global header file), or by adding: -Dindex=strchr -Drindex=strrchr to your CFLAGS environment variable, either directly or in the Makefile. Dave Decot