3 strcat, strncat, strcmp, strncmp, cistrcmp, cistrncmp, strcpy, strncpy, strecpy, strlen, strchr, strrchr, strpbrk, strspn, strcspn, strtok, strdup, strstr, cistrstr \- string operations
11 char* strcat(char *s1, char *s2)
14 char* strncat(char *s1, char *s2, long n)
17 int strcmp(char *s1, char *s2)
20 int strncmp(char *s1, char *s2, long n)
23 int cistrcmp(char *s1, char *s2)
26 int cistrncmp(char *s1, char *s2, long n)
29 char* strcpy(char *s1, char *s2)
32 char* strecpy(char *s1, char *es1, char *s2)
35 char* strncpy(char *s1, char *s2, long n)
41 char* strchr(char *s, char c)
44 char* strrchr(char *s, char c)
47 char* strpbrk(char *s1, char *s2)
50 long strspn(char *s1, char *s2)
53 long strcspn(char *s1, char *s2)
56 char* strtok(char *s1, char *s2)
62 char* strstr(char *s1, char *s2)
65 char* cistrstr(char *s1, char *s2)
71 point to null-terminated strings.
84 do not check for overflow of
85 the array pointed to by
89 appends a copy of string
97 Each returns a pointer to the null-terminated result.
100 compares its arguments and returns an integer
101 less than, equal to, or greater than 0,
104 is lexicographically less than, equal to, or
108 makes the same comparison but examines at most
114 ignore ASCII case distinctions when comparing strings.
115 The comparisons are made with unsigned bytes.
122 stopping after the null byte has been copied.
133 The result will not be null-terminated if the length
139 Each function returns
143 copies bytes until a null byte has been copied, but writes no bytes beyond
145 If any bytes are copied,
147 is terminated by a null byte, and a pointer to that byte is returned.
148 Otherwise, the original
153 returns the number of bytes in
155 not including the terminating null byte.
159 returns a pointer to the first (last)
168 does not occur in the string.
169 The null byte terminating a string is considered to
170 be part of the string.
173 returns a pointer to the first occurrence in string
175 of any byte from string
185 returns the length of the initial segment of string
187 which consists entirely of bytes from (not from) string
193 to consist of a sequence of zero or more text tokens separated
194 by spans of one or more bytes from the separator string
196 The first call, with pointer
198 specified, returns a pointer to the first byte of the first
199 token, and will have written a
202 immediately following the returned token.
204 keeps track of its position in the string
205 between separate calls; subsequent calls,
210 will work through the string
212 immediately following that token.
215 may be different from call to call.
216 When no token remains in
222 returns a pointer to a distinct copy of the null-terminated string
224 in space obtained from
228 if no space can be obtained.
231 returns a pointer to the first occurrence of
235 or 0 if there is none.
243 operates analogously, but ignores ASCII case differences when comparing strings.
245 .B /usr/local/plan9/src/lib9
251 These routines know nothing about
256 Note, however, that the definition of
264 The outcome of overlapping moves varies among implementations.