unistr

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

Library:LibC
Service:Characters and Strings

Syntax

  #include <unilib.h> 
   
  unicode_t *unistr (
     const unicode_t   *as1,
     const unicode_t   *as2);
  

Parameters

as1

(IN) Points to the string to be scanned.

as2

(IN) Points to the string to be located.

Return Values

Returns one of the following values:

Non-NULL

Pointer to the element in s1 where s2 begins (points to s2 in s1).

NULL

s2 does not occur in s1.

Remarks

If the as2 parameter points to a zero length string, unistr returns the string pointed to by the as1 parameter.

The unistr function corresponds to the strstr function.

See Also

unirev