Commit | Line | Data |
---|---|---|
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 | .\" | |
b5d0214e | 9 | .\" @(#)strcoll.3 5.2 (Berkeley) %G% |
9f7ae459 KB |
10 | .\" |
11 | .TH STRCOLL 3 "" | |
12 | .UC 4 | |
13 | .SH NAME | |
b5d0214e | 14 | strcoll \- compare strings according to current collation |
9f7ae459 KB |
15 | .SH SYNOPSIS |
16 | .nf | |
17 | .ft B | |
18 | #include <string.h> | |
19 | ||
20 | int | |
21 | strcoll(const char *s1, const char *s2); | |
22 | .ft R | |
23 | .fi | |
24 | .SH DESCRIPTION | |
25 | .B Strcoll | |
26 | compares null-terminated strings | |
27 | .I s1 | |
28 | and | |
29 | .I s2 | |
30 | according to the current locale collation | |
31 | and returns an integer greater than, equal to, or less than 0, | |
32 | according as | |
33 | .I s1 | |
34 | is lexicographically greater than, equal to, or less than | |
35 | .IR s2 . | |
36 | .SH SEE ALSO | |
37 | bcmp(3), memcmp(3), setlocale(3), strcasecmp(3), strcmp(3), strcoll(3), | |
38 | strncasecmp(3), strncmp(3), strxfrm(3) | |
39 | .SH STANDARDS | |
40 | .B Strcoll | |
41 | conforms to ANSI X3.159-1989 (``ANSI C''). |