strindex

Finds the index of the first occurrence of the search string in the specified string.

Library:LibC
Classification:Other
Service:Characters and Strings

Syntax

  #include <string.h> 
   
  char *strindex (
     const char   *s1,
     const char   *search);
  

Parameters

str

(IN) Points to the string to scan.

search

(IN) Points to string to find in the scanned string.

Return Values

Returns one of the following values:

Non-NULL

Pointer to the index of the first occurrence of the search string.

NULL

The search string does not occur in the scanned string.

Remarks

Starting with NetWare 6.5 SP2, NetWare 6.0 SP5, and NetWare 5.1 SP8, this function is only available when the NLM is linked with the POSIX semantics flag.

See Also