Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ nl_strc(S) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

collation(S)

coltbl(M)

string(S)


 nl_strcmp(S)                   6 January 1993                   nl_strcmp(S)


 Name

    nl_strcmp, nl_strncmp - compare native language strings

 Syntax


    cc  . . .  -lintl


    int *nl_strcmp (s1, s2)
    char *s1, *s2;

    int *nl_strncmp (s1, s2, n)
    char *s1, *s2;
    int n;


 Description

    The routines nlstrcmp and nlstrncmp are provided as an alternative
    interface to the strcoll(S) routine, for programs written to the  X/OPEN
    Portability Guide standard.  However, these routines have been withdrawn
    from XPG3.  They provide the same functions as the string(S) routines
    strcmp and strncmp, except that the language dependent collating informa-
    tion defined for the current LCCOLLATE 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

    collation(S), coltbl(M), nlinit(S), string(S)

 Standards conformance

    nlstrcmp and nlstrncmp are extensions of AT&T System V provided by the
    Santa Cruz Operation.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026