Lines Matching defs:find
48 strcount(const char *source, const char *find)
55 if (source == NULL || find == NULL)
58 /* Cache the length of find element */
59 flen = strlen(find);
65 if (strncmp(p, find, flen) == 0) { /* found an instance */
76 * Replaces all occurrences of `find' in `source' with `replace'.
81 * replacement string is greater than the length of the find string, the result
93 replaceall(char *source, const char *find, const char *replace)
108 if (find == NULL)
113 flen = strlen(find);
120 /* If replace is longer than find, we'll need to create a temp copy */
133 if (strncmp(t, find, flen) == 0) {