index/strchr and rindex/strrchr - READ THIS

Guy Harris guy at sun.uucp
Sat Jul 27 19:56:59 AEST 1985


> What is the BSD function "index" supposed to do?

It's not a BSD function.  It's (surprise!) an AT&T function.  It came with
V7 UNIX, which was produced by AT&T and sold by them.

> Does anyone know the equivalent on a System V Release 2 machine?

Yes.  "strchr".  The function was renamed at some point.

	Guy Harris



More information about the Comp.lang.c mailing list