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

Function strcspn

src/engine/regexp.cpp:1312–1329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

out_Function · 0.85
has_wildcardsFunction · 0.85
raw_command_lengthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected