MCPcopy Create free account
hub / github.com/RsyncProject/rsync / strpbrk

Function strpbrk

lib/compat.c:94–105  ·  view source on GitHub ↗

* Find the first occurrence in @p s of any character in @p accept. * * Derived from glibc **/

Source from the content-addressed store, hash-verified

92 * Derived from glibc
93 **/
94 char *strpbrk(const char *s, const char *accept)
95{
96 while (*s != '\0') {
97 const char *a = accept;
98 while (*a != '\0') {
99 if (*a++ == *s) return (char *)s;
100 }
101 ++s;
102 }
103
104 return NULL;
105}
106#endif
107
108

Callers 8

parse_one_refuse_matchFunction · 0.85
parse_name_mapFunction · 0.85
write_argFunction · 0.85
add_ruleFunction · 0.85
add_implied_includeFunction · 0.85
glob_matchFunction · 0.85
print_info_flagsFunction · 0.85
init_set_compressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected