index(3X)
NAME
index − string operation
SYNOPSIS
int index (s1, s2)
char ∗s1, ∗s2;
DESCRIPTION
The arguments s1 and s2 point to strings (arrays of characters terminated by a null character).
index returns the offset of the first occurrence of string s2 in string s1, or a -1 if s2 does not occur in the string.
NOTE
This version of index is different from the version in /lib/libc.a.
CX/UX Programmer’s Reference Manual