OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / draft / man3 / bcmp.3
1 .\"
2 .\" Permission is granted to make and distribute verbatim copies of this
3 .\" manual provided the copyright notice and this permission notice are
4 .\" preserved on all copies.
5 .\"
6 .\" Permission is granted to copy and distribute modified versions of this
7 .\" manual under the conditions for verbatim copying, provided that the
8 .\" entire resulting derived work is distributed under the terms of a
9 .\" permission notice identical to this one.
10 .\"
11 .\" Since the Linux kernel and libraries are constantly changing, this
12 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
13 .\" responsibility for errors or omissions, or for damages resulting from
14 .\" the use of the information contained herein.  The author(s) may not
15 .\" have taken the same level of care in the production of this manual,
16 .\" which is licensed free of charge, as they might when working
17 .\" professionally.
18 .\"
19 .\" Formatted or processed versions of this manual, if unaccompanied by
20 .\" the source, must acknowledge the copyright and authors of this work.
21 .\"
22 .\" References consulted:
23 .\"     Linux libc source code
24 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
25 .\"     386BSD man pages
26 .\" Modified Sat Jul 24 21:36:50 1993 by Rik Faith <faith@cs.unc.edu>
27 .\" Modified Tue Oct 22 23:47:36 1996 by Eric S. Raymond <esr@thyrsus.com>
28 .\"
29 .\" Japanese Version Copyright (c) 1997 Ueyama Rui
30 .\"         all rights reserved.
31 .\" Translated Sun Sep 7 07:27:24 JST 1997
32 .\"         by Ueyama Rui <rui@campus.ne.jp>
33 .\" Updated Sun Feb 23 JST 2003 by Kentaro Shirakata <argrath@ub32.org>
34 .\"
35 .TH BCMP 3  2008-08-06 "Linux" "Linux Programmer's Manual"
36 .SH 名前
37 .\"O bcmp \- compare byte sequences
38 bcmp \- バイト列を比較する
39 .SH 書式
40 .nf
41 .B #include <strings.h>
42 .sp
43 .BI "int bcmp(const void *" s1 ", const void *" s2 ", size_t " n );
44 .fi
45 .SH 説明
46 .\"O The
47 .\"O .BR bcmp ()
48 .\"O function compares the two byte sequences
49 .\"O .I s1
50 .\"O and
51 .\"O .I s2
52 .\"O of length
53 .\"O .I n
54 .\"O each.
55 .\"O If they are equal, and in particular if
56 .\"O .I n
57 .\"O is zero,
58 .\"O .BR bcmp ()
59 .\"O returns 0.
60 .\"O Otherwise it returns a nonzero result.
61 .BR bcmp ()
62 は、2 つのバイト列
63 .I s1
64
65 .I s2
66 の先頭
67 .I n
68 バイトを
69 比較する。2 つが等しいか、特に
70 .I n
71 が 0 の場合
72 .BR bcmp ()
73 は 0 を返す。
74 さもなければ 0 以外を返す。
75 .SH 返り値
76 .\"O The
77 .\"O .BR bcmp ()
78 .\"O function returns 0 if the byte sequences are equal,
79 .\"O otherwise a nonzero result is returned.
80 バイト列が等しい場合は 0 、等しくない場合は 0 以外を返す。
81 .SH 準拠
82 4.3BSD.
83 .\"O This function is deprecated (marked as LEGACY in POSIX.1-2001): use
84 .\"O .BR memcmp (3)
85 .\"O in new programs.
86 この関数は廃止予定である (POSIX.1-2001 では
87 過去の名残 (LEGACY) とされている)。新しいプログラムでは
88 .BR memcmp (3)
89 を使うべきである。
90 .\"O POSIX.1-2008 removes the specification of
91 .\"O .BR bcmp ().
92 POSIX.1-2008 では
93 .BR bcmp ()
94 の仕様が削除されている。
95 .SH 関連項目
96 .BR memcmp (3),
97 .BR strcasecmp (3),
98 .BR strcmp (3),
99 .BR strcoll (3),
100 .BR strncasecmp (3),
101 .BR strncmp (3)