| 1310 | */ |
| 1311 | |
| 1312 | static int32_t |
| 1313 | strcspn( |
| 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 |
no outgoing calls
no test coverage detected