utf8str

Scans a string for the first occurrence of a given substring.

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

  #include <utf8.h> 
   
  utf8_t  *utf8str (
     const utf8_t   *as1,
     const utf8_t   *as2);
  

Parameters

as1

(IN) Points to a null-terminated string to scan.

as2

(IN) Points to a null-terminated substring for which to search.

Return Values

Returns a pointer to the located string, or a NULL pointer if the string is not found.

Remarks

The utf8str function locates the first occurrence in the as1 string of the sequence of characters (excluding the null-terminating character) in the string pointed to by as2.

See Also