]>
Commit | Line | Data |
---|---|---|
fea681da MK |
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 | .TH STRING 3 1993-04-09 "" "Linux Programmer's Manual" | |
29 | .SH NAME | |
30 | strcasecmp, strcat, strchr, strcmp, strcoll, strcpy, strcspn, | |
31 | strdup, strfry, strlen, strncat, strncmp, strncpy, strncasecmp, strpbrk, | |
32 | strrchr, strsep, strspn, strstr, strtok, strxfrm, index, rindex | |
33 | \- string operations | |
34 | .SH SYNOPSIS | |
35 | .nf | |
36 | .B #include <strings.h> | |
37 | .sp | |
38 | .BI "int strcasecmp(const char *" s1 ", const char *" s2 ); | |
39 | .sp | |
40 | .BI "int strncasecmp(const char *" s1 ", const char *" s2 ", size_t " n ); | |
41 | .sp | |
42 | .BI "char *index(const char *" s ", int " c ); | |
43 | .sp | |
44 | .BI "char *rindex(const char *" s ", int " c ); | |
45 | .sp | |
46 | .B #include <string.h> | |
47 | .sp | |
48 | .BI "char *strcat(char *" dest ", const char *" src ); | |
49 | .sp | |
50 | .BI "char *strchr(const char *" s ", int " c ); | |
51 | .sp | |
52 | .BI "int strcmp(const char *" s1 ", const char *" s2 ); | |
53 | .sp | |
54 | .BI "int strcoll(const char *" s1 ", const char *" s2 ); | |
55 | .sp | |
56 | .BI "char *strcpy(char *" dest ", const char *" src ); | |
57 | .sp | |
58 | .BI "size_t strcspn(const char *" s ", const char *" reject ); | |
59 | .sp | |
60 | .BI "char *strdup(const char *" s ); | |
61 | .sp | |
62 | .BI "char *strfry(char *" string ); | |
63 | .sp | |
64 | .BI "size_t strlen(const char *" s ); | |
65 | .sp | |
66 | .BI "char *strncat(char *" dest ", const char *" src ", size_t " n ); | |
67 | .sp | |
68 | .BI "int strncmp(const char *" s1 ", const char *" s2 ", size_t " n ); | |
69 | .sp | |
70 | .BI "char *strncpy(char *" dest ", const char *" src ", size_t " n ); | |
71 | .sp | |
72 | .BI "char *strpbrk(const char *" s ", const char *" accept ); | |
73 | .sp | |
74 | .BI "char *strrchr(const char *" s ", int " c ); | |
75 | .sp | |
76 | .BI "char *strsep(char **" stringp ", const char *" delim ); | |
77 | .sp | |
78 | .BI "size_t strspn(const char *" s ", const char *" accept ); | |
79 | .sp | |
80 | .BI "char *strstr(const char *" haystack ", const char *" needle ); | |
81 | .sp | |
82 | .BI "char *strtok(char *" s ", const char *" delim ); | |
83 | .sp | |
84 | .BI "size_t strxfrm(char *" dest ", const char *" src ", size_t " n ); | |
85 | .fi | |
86 | .SH DESCRIPTION | |
87 | The string functions perform string operations on NUL-terminated | |
88 | strings. See the individual man pages for descriptions of each | |
89 | function. | |
90 | .SH "SEE ALSO" | |
91 | .BR index (3), | |
92 | .BR rindex (3), | |
93 | .BR strcasecmp (3), | |
94 | .BR strcat (3), | |
95 | .BR strchr (3), | |
96 | .BR strcmp (3), | |
97 | .BR strcoll (3), | |
98 | .BR strcpy (3), | |
99 | .BR strcspn (3), | |
100 | .BR strdup (3), | |
101 | .BR strfry (3), | |
102 | .BR strlen (3), | |
103 | .BR strncasecmp (3), | |
104 | .BR strncat (3), | |
105 | .BR strncmp (3), | |
106 | .BR strncpy (3), | |
107 | .BR strpbrk (3), | |
108 | .BR strrchr (3), | |
109 | .BR strsep (3), | |
110 | .BR strspn (3), | |
111 | .BR strstr (3), | |
112 | .BR strtok (3), | |
113 | .BR strxfrm (3) |