1234567891011 |
- #include <string.h>
- #include <stdio.h>
- #include <stdlib.h>
- int main(void) {
- char *world = "world";
- printf("%ld\n", strcspn("hello", world)); // should be 2
- printf("%ld\n", strcspn("banana", world)); // should be 6
- return EXIT_SUCCESS;
- }
|