Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

col_seq_16(5)

col_seq_8(5)

hpnls(7)

langid(7)

NL_STRING(3C)

NAME

strcmp8, strncmp8, strcpm16, strncmp16 − non ASCII string collation used by NLS

SYNOPSIS

int strcmp8 (s1, s2, langid, status)
unsigned char ∗s1, ∗s2;
int langid,∗status;

int strncmp8 (s1, s2, n, langid, status)
unsigned char ∗s1, ∗s2;
int n, langid, ∗status;

int strcmp16 (s1, s2, file_name, status)
unsigned char ∗s1, ∗s2, ∗file_name;
int ∗status;

int strncmp16 (s1, s2, n, file_name, status)
unsigned char ∗s1, ∗s2, ∗file_name;
int n, ∗status;

HP-UX COMPATIBILITY

Level: HP-UX/STANDARD

Origin: HP

Native Language Support:
8−bit and 16−bit data, customs, messages

DESCRIPTION

These functions do not check for overflow of any receiving string. 

Strcmp8 compares string s1 and s2 according to the collating sequence specified by langid (See langid(7)).  An integer greater than, equal to, or less than 0 is returned, according as s1 is greater than, equal to, or less than s2.  If langid or the collation sequence file is not installed, the native machine collating sequence is used.  Trailing blanks in string s1 or s2 are ignored.  Strncmp8 makes the same comparison but looks at most n characters. 

Strcmp16 compares strings s1 and s2 according to the 16-bit collating sequence table in file_name (See col_seq_16). Strings s1 and s2 may contain 16-bit character substrings in 8-bit canonical form.  An integer greater than, equal to, or less than 0,  according as s1 is greater than, equal to, or less than s2.  Strncmp16 makes the same comparison but looks at most n characters. 

The integer pointed to by status is set to one of the following non-zero values defined in /usr/include/langinfo.h if an abnormal condition is encountered.  ENOCFFILE - the file /usr/lib/nls/config is missing ENOCONV - the entry for the language sought is not in the file /usr/lib/nls/config ENODIR - the directory /usr/lib/nls/$LANG cannot be accessed ENOLFILE - the data file /usr/lib/nls/$LANG/collate8 or file_name is missing EBADREAD - the data file /usr/lib/nls/$LANG/collate8 or file_name exists but seems to be corrupted

SEE ALSO

col_seq_16(5), col_seq_8(5), hpnls(7), langid(7). 

Hewlett-Packard  —  last mod. May 11, 2021

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