// This is test program for strrchr function from string.h #include #include int main() { char s[] = "Hi.Hello.Hey!"; puts(strrchr(s, '.')); return 0; }