uninicmp(3nw)


uninicmp -- compares specified number of characters between two strings

Synopsis

   #include <unicode.h> 
   

int N_API uninicmp (unicode N_FAR * s1, unicode N_FAR * s2, size_t n);

Description

The parameters are as follows:

s1
(IN) Points to the first string to be compared.

s2
(IN) Points to the second string to be compared.

n
(IN) Specifies the maximum number of characters (not bytes) to be compared.

Return values

One of the following values:

<0
s1 is less than s2

=0
s1 is equal to s2

>0
s1 is greater than s2

Notices

uninicmp compares s1 to s2, for a maximum length of n characters, starting with the first character in each string and continuing with subsequent characters until either the corresponding characters differ or else the end of the strings is reached. The comparison is not case sensitive.

uninicmp corresponds to C strnicmp.

Services

Unicode

NCP calls

None

References

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