Lstrchr

Locates the first occurrence of a specified character in a string.

Library:LibC
Classification:Other
Service:Characters and Strings

Syntax

  #include <string.h> 
   
  char *Lstrchr (
     const char   *s, 
     const char   *c);
  

Parameters

s

(IN) Points to the string containing characters for which to search.

c

(IN) Specifies the character for which to search.

Return Values

Returns a pointer to the located character or a NULL pointer if the character does not occur in the string.

Remarks

The Lstrchr function is a double-byte character interface. It locates the first occurrence of c (converted to a char) in the string pointed to by s. The terminating NULL character is considered to be part of the string.

See Also