Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

string(3)

setlocale(3int)

strxfrm(3int)

strcoll(3int)

NAME

strcoll − string collation comparison

SYNTAX

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

DESCRIPTION

The function strcoll returns an integer less than, equal to, or greater than zero depending on whether the string pointed to by s1 is lexicographically less than, equal to, or greater than the string pointed to by s2. 

The comparison is done using the collating information defined in the program’s locale, category LC_COLLATE.

In the C locale, characters collate as if they are unsigned.  In all cases strcoll works as if strxfrm were called on s1 and s2, and strcmp was called on the resulting strings.

SEE ALSO

string(3), setlocale(3int), strxfrm(3int)

Subroutines

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