.\" 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