1STRING(3) Linux Programmer's Manual STRING(3)
2
3
4
6 stpcpy, strcasecmp, strcat, strchr, strcmp, strcoll, strcpy, strcspn,
7 strdup, strfry, strlen, strncat, strncmp, strncpy, strncasecmp, strp‐
8 brk, strrchr, strsep, strspn, strstr, strtok, strxfrm, index, rindex -
9 string 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 *stpcpy(char *dest, const char *src);
25
26 char *strcat(char *dest, const char *src);
27
28 char *strchr(const char *s, int c);
29
30 int strcmp(const char *s1, const char *s2);
31
32 int strcoll(const char *s1, const char *s2);
33
34 char *strcpy(char *dest, const char *src);
35
36 size_t strcspn(const char *s, const char *reject);
37
38 char *strdup(const char *s);
39
40 char *strfry(char *string);
41
42 size_t strlen(const char *s);
43
44 char *strncat(char *dest, const char *src, size_t n);
45
46 int strncmp(const char *s1, const char *s2, size_t n);
47
48 char *strncpy(char *dest, const char *src, size_t n);
49
50 char *strpbrk(const char *s, const char *accept);
51
52 char *strrchr(const char *s, int c);
53
54 char *strsep(char **stringp, const char *delim);
55
56 size_t strspn(const char *s, const char *accept);
57
58 char *strstr(const char *haystack, const char *needle);
59
60 char *strtok(char *s, const char *delim);
61
62 size_t strxfrm(char *dest, const char *src, size_t n);
63
65 The string functions perform string operations on null-terminated
66 strings. See the individual man pages for descriptions of each func‐
67 tion.
68
70 index(3), rindex(3), strcasecmp(3), stpcpy(3), strcat(3), strchr(3),
71 strcmp(3), strcoll(3), strcpy(3), strcspn(3), strdup(3), strfry(3),
72 strlen(3), strncasecmp(3), strncat(3), strncmp(3), strncpy(3), strp‐
73 brk(3), strrchr(3), strsep(3), strspn(3), strstr(3), strtok(3),
74 strxfrm(3)
75
77 This page is part of release 3.25 of the Linux man-pages project. A
78 description of the project, and information about reporting bugs, can
79 be found at http://www.kernel.org/doc/man-pages/.
80
81
82
83 2010-02-25 STRING(3)