Lines Matching full:find
43 strcount(const char *source, const char *find)
50 if (source == NULL || find == NULL)
53 /* Cache the length of find element */
54 flen = strlen(find);
60 if (strncmp(p, find, flen) == 0) { /* found an instance */
71 * Replaces all occurrences of `find' in `source' with `replace'.
76 * replacement string is greater than the length of the find string, the result
88 replaceall(char *source, const char *find, const char *replace)
103 if (find == NULL)
108 flen = strlen(find);
115 /* If replace is longer than find, we'll need to create a temp copy */
128 if (strncmp(t, find, flen) == 0) {