Files
RedBear-OS/tests/string/strchr.c
T
2018-03-10 22:58:35 +08:00

11 lines
257 B
C

#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;
}