INTERNATIONAL VERSION
Page 1 (printed 6/20/89)
NL_STRCMP(S) UNIX System V NL_STRCMP(S)
Name
nl_strcmp, nl_strncmp - compare native language strings
Syntax
int *nl_strcmp(s1, s2)
char *s1, *s2;
int *nl_strncmp(s1, s2, n)
char *s1, *s2;
int n;
Description
The routines nl_strcmp and nl_strncmp are provided as an
alternative interface to the strcoll(S) routine, for
programs written to the X/OPEN Portability Guide standard.
They provide the same functions as the string(S) routines
strcmp and strncmp, except that the language dependent
collating information defined for the current LC_COLLATE
locale is used to rank the strings, instead of the binary
values of the machine character set.
In this way, the strings are compared according to the
dictionary order of data, taking into account case and
accent priority, 1-to-1, 1-to-2, 2-to-1 and don't care
character mappings.
See Also
coltbl(M), collation(S), nl_init(S), string(S)
Value Added
nl_strcmp and nl_strncmp are extensions of AT&T System V
provided by the Santa Cruz Operation.
(printed 6/20/89)