1STRING(3) Linux Programmer's Manual STRING(3)
2
3
4
6 strcasecmp, strcat, strchr, strcmp, strcoll, strcpy, strcspn, strdup,
7 strfry, strlen, strncat, strncmp, strncpy, strncasecmp, strpbrk, str‐
8 rchr, strsep, strspn, strstr, strtok, strxfrm, index, rindex - string
9 operations
10
12 #include <strings.h>
13
14 int strcasecmp(const char *s1, const char *s2);
15
16 int strncasecmp(const char *s1, const char *s2, size_t n);
17
18 char *index(const char *s, int c);
19
20 char *rindex(const char *s, int c);
21
22 #include <string.h>
23
24 char *strcat(char *dest, const char *src);
25
26 char *strchr(const char *s, int c);
27
28 int strcmp(const char *s1, const char *s2);
29
30 int strcoll(const char *s1, const char *s2);
31
32 char *strcpy(char *dest, const char *src);
33
34 size_t strcspn(const char *s, const char *reject);
35
36 char *strdup(const char *s);
37
38 char *strfry(char *string);
39
40 size_t strlen(const char *s);
41
42 char *strncat(char *dest, const char *src, size_t n);
43
44 int strncmp(const char *s1, const char *s2, size_t n);
45
46 char *strncpy(char *dest, const char *src, size_t n);
47
48 char *strpbrk(const char *s, const char *accept);
49
50 char *strrchr(const char *s, int c);
51
52 char *strsep(char **stringp, const char *delim);
53
54 size_t strspn(const char *s, const char *accept);
55
56 char *strstr(const char *haystack, const char *needle);
57
58 char *strtok(char *s, const char *delim);
59
60 size_t strxfrm(char *dest, const char *src, size_t n);
61
63 The string functions perform string operations on null-terminated
64 strings. See the individual man pages for descriptions of each func‐
65 tion.
66
68 index(3), rindex(3), strcasecmp(3), strcat(3), strchr(3), strcmp(3),
69 strcoll(3), strcpy(3), strcspn(3), strdup(3), strfry(3), strlen(3),
70 strncasecmp(3), strncat(3), strncmp(3), strncpy(3), strpbrk(3), str‐
71 rchr(3), strsep(3), strspn(3), strstr(3), strtok(3), strxfrm(3)
72
74 This page is part of release 3.22 of the Linux man-pages project. A
75 description of the project, and information about reporting bugs, can
76 be found at http://www.kernel.org/doc/man-pages/.
77
78
79
80 1993-04-09 STRING(3)