Lines Matching defs:find
45 strcount(const char *source, const char *find)
52 if (source == NULL || find == NULL)
55 /* Cache the length of find element */
56 flen = strlen(find);
62 if (strncmp(p, find, flen) == 0) { /* found an instance */
73 * Replaces all occurrences of `find' in `source' with `replace'.
78 * replacement string is greater than the length of the find string, the result
90 replaceall(char *source, const char *find, const char *replace)
105 if (find == NULL)
110 flen = strlen(find);
117 /* If replace is longer than find, we'll need to create a temp copy */
130 if (strncmp(t, find, flen) == 0) {