.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sun Jul 25 10:40:44 1993 by Rik Faith (faith@cs.unc.edu) .TH STRCOLL 3 1993-04-12 "GNU" "Linux Programmer's Manual" .SH NAME strcoll \- 用当前的区域选项来比较两个字符串 .SH "总览 (SYNOPSIS)" .nf .B #include .sp .BI "int strcoll(const char *" s1 ", const char *" s2 ); .fi .SH "描述 (DESCRIPTION)" \fBstrcoll()\fP 函数 是用来 比较 \fIs1\fP 和 \fIs2\fP 两个 字符串的. 如果 \fIs1\fP 不为空, 它会 返回 一个 小于, 等于 或者 大于 零的 整数 分别来 表示 它 小于, 等于 或者 大于 \fIs2\fP. 它是 根据 程序 当前的 区域选项 中的 \fILC_COLLATE\fP 来 比较的. (见 \fBsetlocale\fP(3)). .SH "返回值 (RETURN VALUE)" 如果 \fIs1\fP 不为空, \fBstrcoll()\fP 函数 会 返回 一个 小于, 等于 或者 大于 零的 整数 分别来 表示 它 小于, 等于 或者 大于 \fIs2\fP. 每个 字符串 都根据 当前的 区域选项 来解释. .SH "遵循 (CONFORMING TO)" SVID 3, BSD 4.3, ISO 9899 .SH "注意 (NOTES)" 如果 区域选项 是 \fI"POSIX"\fP 或者 \fI"C"\fP, 那么 \fBstrcoll()\fP 同 \fBstrcmp()\fP 是等价的. .SH "参见 (SEE ALSO)" .BR bcmp "(3), " memcmp "(3), " strcasecmp "(3), " strcmp (3), .BR strxfrm "(3), " setlocale (3) .SH "[中文版维护人]" .B 唐友 \ .SH "[中文版最新更新]" .BR 2002/1/28 .SH "[中国Linux论坛man手册页翻译计划]" .BI http://cmpp.linuxforum.net .SH "跋" .br 本页面中文版由中文 man 手册页计划提供。 .br 中文 man 手册页计划:\fBhttps://github.com/man-pages-zh/manpages-zh\fR