What does index() and rindex() do ??

Tim Dawson tim at mismpc.dal.fsd.mot.com
Thu Mar 28 11:23:14 AEST 1991


tore at bibsyst.UUCP (Tore Morkemo) writes:

>Could anyone please tell me what rindex() and index() are supposed to do ??

On System V, strchr and strrchr perform the same functions - typically if you:

#define index strchr
#define rindex strrchr

everything will work OK.



More information about the Comp.unix.programmer mailing list