OSDN Git Service

e94d160db68c44c4f3e72e8300b7f91a8abc8ca3
[linuxjm/LDP_man-pages.git] / draft / man3 / string.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
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.
6 .\"
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.
11 .\"
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
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" References consulted:
24 .\"     Linux libc source code
25 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26 .\"     386BSD man pages
27 .\" Modified Sun Jul 25 10:54:31 1993, Rik Faith (faith@cs.unc.edu)
28 .\"
29 .\" Japanese Version Copyright (c) 1997 YOSHINO Takashi
30 .\"       all rights reserved.
31 .\" Translated Mon Jan 20 18:57:06 JST 1997
32 .\"       by YOSHINO Takashi <yoshino@civil.jcn.nihon-u.ac.jp>
33 .\"
34 .TH STRING 3 2010-02-25 "" "Linux Programmer's Manual"
35 .\"O .SH NAME
36 .SH Ì¾Á°
37 stpcpy, strcasecmp, strcat, strchr, strcmp, strcoll, strcpy, strcspn,
38 strdup, strfry, strlen, strncat, strncmp, strncpy, strncasecmp, strpbrk,
39 strrchr, strsep, strspn, strstr, strtok, strxfrm, index, rindex
40 .\"O \- string operations
41 \- Ê¸»úÎó¤òÁàºî¤¹¤ë´Ø¿ô
42 .\"O .SH SYNOPSIS
43 .SH ½ñ¼°
44 .nf
45 .B #include <strings.h>
46 .sp
47 .BI "int strcasecmp(const char *" s1 ", const char *" s2 );
48 .sp
49 .BI "int strncasecmp(const char *" s1 ", const char *" s2 ", size_t " n );
50 .sp
51 .BI "char *index(const char *" s ", int " c );
52 .sp
53 .BI "char *rindex(const char *" s ", int " c );
54 .sp
55 .B #include <string.h>
56 .sp
57 .BI "char *stpcpy(char *" dest ", const char *" src );
58 .sp
59 .BI "char *strcat(char *" dest ", const char *" src );
60 .sp
61 .BI "char *strchr(const char *" s ", int " c );
62 .sp
63 .BI "int strcmp(const char *" s1 ", const char *" s2 );
64 .sp
65 .BI "int strcoll(const char *" s1 ", const char *" s2 );
66 .sp
67 .BI "char *strcpy(char *" dest ", const char *" src );
68 .sp
69 .BI "size_t strcspn(const char *" s ", const char *" reject );
70 .sp
71 .BI "char *strdup(const char *" s );
72 .sp
73 .BI "char *strfry(char *" string );
74 .sp
75 .BI "size_t strlen(const char *" s );
76 .sp
77 .BI "char *strncat(char *" dest ", const char *" src ", size_t " n );
78 .sp
79 .BI "int strncmp(const char *" s1 ", const char *" s2 ", size_t " n );
80 .sp
81 .BI "char *strncpy(char *" dest ", const char *" src ", size_t " n );
82 .sp
83 .BI "char *strpbrk(const char *" s ", const char *" accept );
84 .sp
85 .BI "char *strrchr(const char *" s ", int " c );
86 .sp
87 .BI "char *strsep(char **" stringp ", const char *" delim );
88 .sp
89 .BI "size_t strspn(const char *" s ", const char *" accept );
90 .sp
91 .BI "char *strstr(const char *" haystack ", const char *" needle );
92 .sp
93 .BI "char *strtok(char *" s ", const char *" delim );
94 .sp
95 .BI "size_t strxfrm(char *" dest ", const char *" src ", size_t " n );
96 .fi
97 .\"O .SH DESCRIPTION
98 .SH ÀâÌÀ
99 .\"O The string functions perform string operations on null-terminated
100 .\"O strings.
101 ʸ»úÎó´Ø¿ô¤Ï¡¢NULL ½ªÃ¼¤µ¤ì¤¿Ê¸»úÎó¤Ë
102 ÂФ·¤Æ¡¢Ê¸»úÎóÁàºî¤ò¼Â¹Ô¤¹¤ë¡£
103 .\"O See the individual man pages for descriptions of each function.
104 ¤½¤ì¤¾¤ì¤Î´Ø¿ô¤ÎÀâÌÀ¤Ë¤Ä¤¤¤Æ¤Ï¸Ä¡¹¤Îman¥Ú¡¼¥¸¤ò¸«¤è¡£
105 .\"O .SH "SEE ALSO"
106 .SH ´ØÏ¢¹àÌÜ
107 .BR index (3),
108 .BR rindex (3),
109 .BR strcasecmp (3),
110 .BR stpcpy (3),
111 .BR strcat (3),
112 .BR strchr (3),
113 .BR strcmp (3),
114 .BR strcoll (3),
115 .BR strcpy (3),
116 .BR strcspn (3),
117 .BR strdup (3),
118 .BR strfry (3),
119 .BR strlen (3),
120 .BR strncasecmp (3),
121 .BR strncat (3),
122 .BR strncmp (3),
123 .BR strncpy (3),
124 .BR strpbrk (3),
125 .BR strrchr (3),
126 .BR strsep (3),
127 .BR strspn (3),
128 .BR strstr (3),
129 .BR strtok (3),
130 .BR strxfrm (3)