unichr(3nw)


unichr -- finds first occurrence of character in string

Synopsis

   #include <unicode.h> 
   

unicode N_FAR *N_API unichr (unicode N_FAR * s, int c);

Description

The parameters are as follows:

s
(IN) Points to the string to be scanned.

c
(IN) Specifies the character to be found.

Return values

Non-NULL
Pointer to the first occurrence of the character c in s.

NULL
c does not occur in s.

Notices

The NULL terminator is part of the string, for example:
   unichr(string,0) 
returns a pointer to the terminating NULL character of string.

unichr corresponds to C strchr.

Services

Unicode

NCP calls

None

References

unirchr(3nw), unistr(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.