OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / 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)