fts_load no longer has any return value
[unix-history] / usr / src / lib / libc / string / strcoll.3
CommitLineData
9f7ae459
KB
1.\" Copyright (c) 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek.
6.\"
7.\" %sccs.include.redist.man%
8.\"
ee7c1421 9.\" @(#)strcoll.3 5.3 (Berkeley) %G%
9f7ae459
KB
10.\"
11.TH STRCOLL 3 ""
12.UC 4
13.SH NAME
b5d0214e 14strcoll \- compare strings according to current collation
9f7ae459
KB
15.SH SYNOPSIS
16.nf
17.ft B
18#include <string.h>
19
20int
21strcoll(const char *s1, const char *s2);
22.ft R
23.fi
24.SH DESCRIPTION
25.B Strcoll
26compares null-terminated strings
27.I s1
28and
29.I s2
30according to the current locale collation
31and returns an integer greater than, equal to, or less than 0,
32according as
33.I s1
34is lexicographically greater than, equal to, or less than
35.IR s2 .
36.SH SEE ALSO
37bcmp(3), memcmp(3), setlocale(3), strcasecmp(3), strcmp(3), strcoll(3),
ee7c1421 38strxfrm(3)
9f7ae459
KB
39.SH STANDARDS
40.B Strcoll
41conforms to ANSI X3.159-1989 (``ANSI C'').