MCPcopy Create free account
hub / github.com/boostorg/build / strcspn

Function strcspn

v2/engine/regexp.c:1311–1328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1309 */
1310
1311static int
1312strcspn(
1313 char *s1,
1314 char *s2 )
1315{
1316 register char *scan1;
1317 register char *scan2;
1318 register int count;
1319
1320 count = 0;
1321 for (scan1 = s1; *scan1 != '\0'; scan1++) {
1322 for (scan2 = s2; *scan2 != '\0';) /* ++ moved down. */
1323 if (*scan1 == *scan2++)
1324 return(count);
1325 count++;
1326 }
1327 return(count);
1328}
1329#endif

Callers 4

has_wildcardsFunction · 0.85
raw_command_lengthFunction · 0.85
out_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected