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)
29 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
30 .\" all rights reserved.
31 .\" Translated 1997-12-26, HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
32 .\" Modified 2007-05-28, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.48
34 .TH STRCOLL 3 2010-09-20 "GNU" "Linux Programmer's Manual"
37 .\"O strcoll \- compare two strings using the current locale
38 strcoll \- 現在のロケールを使用して二つの文字列を比較する
42 .B #include <string.h>
44 .BI "int strcoll(const char *" s1 ", const char *" s2 );
50 .\"O function compares the two strings \fIs1\fP and
52 \fbstrcoll\fP() 関数は二つの文字列 \fIs1\fP と \fIs2\fP を比較する。
53 .\"O It returns an integer less than, equal to, or greater
54 .\"O than zero if \fIs1\fP is found, respectively, to be less than,
55 .\"O to match, or be greater than \fIs2\fP.
56 この関数は、\fIs1\fP が \fIs2\fP よりも小さいか、等しいか、大きいかによって
58 .\"O The comparison is based on
59 .\"O strings interpreted as appropriate for the program's current locale
60 .\"O for category \fBLC_COLLATE\fP. (See
61 .\"O .BR setlocale (3).)
62 比較は、プログラムの現在のロケールの \fBLC_COLLATE\fP カテゴリに応じて
66 .\"O .SH "RETURN VALUE"
70 .\"O function returns an integer less than, equal to,
71 .\"O or greater than zero if \fIs1\fP is found, respectively, to be less
72 .\"O than, to match, or be greater than \fIs2\fP, when both are interpreted
73 .\"O as appropriate for the current locale.
75 関数は、\fIs1\fP が \fIs2\fP よりも小さいか、等しいか、
76 大きいかによって、それぞれ負の整数、0、正の整数を返す。
77 どちらの文字列も現在のロケールに応じて解釈されたものが使用される。
78 .\"O .SH "CONFORMING TO"
80 SVr4, 4.3BSD, C89, C99.
83 .\"O In the \fI"POSIX"\fP or \fI"C"\fP locales
87 \fI"POSIX"\fP および \fI"C"\fP ロケールにおいては、