(2) index

Paul Campbell pc at unisoft.UUCP
Tue Jul 30 01:23:03 AEST 1985


<oog>
> 	i=index(cs1,cs2)
> 
	The BSD 'index' searches for a single character in a string, the
fortran 'index' above searches for a substring within an outer string. The
BSD 'index' is exactly the same as V.2 'strchr', ditto for BSD 'rindex'
and V.2 'strrchr'

		Paul Campbell
		..!ucbvax!unisoft!paul



More information about the Comp.lang.c mailing list