Lines Matching full:find
43 strcount(const char *source, const char *find) in strcount() argument
50 if (source == NULL || find == NULL) in strcount()
53 /* Cache the length of find element */ in strcount()
54 flen = strlen(find); in strcount()
60 if (strncmp(p, find, flen) == 0) { /* found an instance */ in strcount()
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) in replaceall() argument
103 if (find == NULL) in replaceall()
108 flen = strlen(find); in replaceall()
115 /* If replace is longer than find, we'll need to create a temp copy */ in replaceall()
128 if (strncmp(t, find, flen) == 0) { in replaceall()