Files
RedBear-OS/tests/string/strchr.c
T
2019-02-20 19:27:18 +01:00

11 lines
246 B
C

#include <string.h>
#include <stdio.h>
int main(void) {
printf("%s\n", strchr("hello", 'e')); // should be ello
printf("%s\n", strchr("world", 'l')); // should be ld
printf("%i\n", strchr("world", 0) == NULL); // should be 1
return 0;
}