strcoll(3) Library Functions Manual strcoll(3)NAME
strcoll - Compares strings using locale collation
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <string.h>
int strcoll(
const char *s1,
const char *s2);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
strcoll(): XSH4.2
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Specifies first string to be compared. Specifies second string to be compared.
DESCRIPTION
The strcoll() function compares the string pointed to by the s1 parameter with the string pointed to by the s2 parameter, both interpreted
as appropriate to the LC_COLLATE category of the current locale.
RETURN VALUES
On successful completion, the strcoll() function returns an integer whose value is greater than, equal to, or less than 0 (zero), according
to whether the s1 string is greater than, equal to, or less than the s2 string.
[Tru64 UNIX] When a successful comparison cannot be made, this function returns a value of 0 (zero).
ERRORS
The strcoll() function sets errno to the specified values for the following conditions: The string pointed to by the s1 or s2 parameter
contains characters outside the domain of the collating sequence.
RELATED INFORMATION
Functions: setlocale(3), string(3)/strcmp(3), strxfrm(3), wcscoll(3)
Standards: standards(5) delim off
strcoll(3)
Check Out this Related Man Page
strcoll(3) Library Functions Manual strcoll(3)Name
strcoll - string collation comparison
Syntax
int strcoll (s1, s2)
char *s1, *s2;
Description
The function returns an integer less than, equal to, or greater than zero depending on whether the string pointed to by s1 is lexicographi-
cally less than, equal to, or greater than the string pointed to by s2.
The function performs the comparison by using the collating information defined in the program's locale, category
In the C locale, characters collate as if they are unsigned. In all cases works as if were called on s1 and s2, and was called on the
resulting strings.
International Environment
LC_COLLATE Contains the user requirements for language, territory, and codeset for the character collation format. affects the behav-
ior of regular expressions and the string collation functions in If is not defined in the current environment, provides the
necessary default.
LANG If this environment is set and valid, uses the international language database named in the definition to determine the
character collation formatting rules. If is defined, its definition supercedes the definition of
See Alsostring(3), setlocale(3), strxfrm(3), environ(5int)strcoll(3)
Hello All
in a text file I have to replace some numeric code by a string.
This is an exemple of the file:
000000001 LDR L ^^^^^nam^^2200169Ia^45e0
000000001 008 L 100604s9999^^^^xx^^^^^^^^^^^^000^0^und^d
000000001 022 L $$a0365-6675
000000001 090 L $$aBMA 1934-1937.
000000001 245... (1 Reply)
I have been living with this problem with GNU sed v4.1.4 for a long time, but now I really need to figure it out.
When using a list in either an address or a search, the expression is matching lower and upper-case letters. works as it should.
For example, if I run
sed -nr "// p"... (7 Replies)
When you trying for work with computers first you see KB (or KiloBytes)and MB (or MegaBytes) all the time but where you does it stand for?Basically it’s a measurement of memory on a computer.
Here i have some examples of what some other numbers and letters look like to the computer:
0 =... (3 Replies)