1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" References consulted:
24 .\" Linux libc source code
25 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
27 .\" Modified Sun Jul 25 10:40:44 1993 by Rik Faith (faith@cs.unc.edu)
28 .TH STRCOLL 3 1993-04-12 "GNU" "Linux Programmer's Manual"
31 strcoll \- 用当前的区域选项来比较两个字符串
35 .B #include <string.h>
37 .BI "int strcoll(const char *" s1 ", const char *" s2 );
40 .SH "描述 (DESCRIPTION)"
41 \fBstrcoll()\fP 函数 是用来 比较 \fIs1\fP 和 \fIs2\fP 两个 字符串的.
42 如果 \fIs1\fP 不为空, 它会 返回 一个 小于, 等于 或者 大于 零的 整数 分别来
43 表示 它 小于, 等于 或者 大于 \fIs2\fP. 它是 根据 程序 当前的 区域选项 中的
44 \fILC_COLLATE\fP 来 比较的. (见 \fBsetlocale\fP(3)).
46 .SH "返回值 (RETURN VALUE)"
47 如果 \fIs1\fP 不为空, \fBstrcoll()\fP 函数 会 返回 一个 小于, 等于 或者 大于
48 零的 整数 分别来 表示 它 小于, 等于 或者 大于 \fIs2\fP. 每个 字符串 都根据
51 .SH "遵循 (CONFORMING TO)"
52 SVID 3, BSD 4.3, ISO 9899
55 如果 区域选项 是 \fI"POSIX"\fP 或者 \fI"C"\fP, 那么 \fBstrcoll()\fP 同
59 .BR bcmp "(3), " memcmp "(3), " strcasecmp "(3), " strcmp (3),
60 .BR strxfrm "(3), " setlocale (3)
63 .B 唐友 \<tony_ty@263.net\>
66 .SH "[中国Linux论坛man手册页翻译计划]"
67 .BI http://cmpp.linuxforum.net