12345678910 |
- #include <string.h>
- #include <stdio.h>
- int main(int argc, char* argv[]) {
- printf("%s\n", strchr("hello", 'e')); // should be ello
- printf("%s\n", strchr("world", 'l')); // should be ld
- printf("%s\n", strchr("world", 0)); // should be ''
- return 0;
- }
|