olibc/src/tests/string/strrchr.c

11 lines
182 B
C
Raw Normal View History

2021-12-19 08:35:56 +00:00
// This is test program for strrchr function from string.h
#include <string.h>
#include <stdio.h>
int main() {
char s[] = "Hi.Hello.Hey!";
puts(strrchr(s, '.'));
return 0;
}