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

harold.e.bamford bamford at cbnewsd.att.com
Thu Mar 28 07:12:52 AEST 1991


In article <375 at bibsyst.UUCP> tore at 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



More information about the Comp.unix.programmer mailing list