Files
RedBear-OS/tests/string/strchr.c
T
2018-07-08 08:44:23 +02:00

11 lines
264 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("%i\n", strchr("world", 0) == NULL); // should be 1
return 0;
}