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

Jan-Piet Mens @ Logix GmbH, Wiesbaden jpm at logixwi.uucp
Thu Mar 28 18:50:14 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 ??

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 at logixwi.UUCP
Moritzstr. 50, D-6200 Wiesbaden            ...!uunet!mcsun!unido!logixwi!jpm



More information about the Comp.unix.programmer mailing list