why for in following function used 't'
for int ch
"?
ch is int, why use char?
Synopsis:
#include <stdio.h>
char *strrchr(char *string, int c);
Example:
#include <stdio.h>
int main() {
char *s;
char buf [] = "This is a testing";
s = strrchr (buf, 't');
if (s != NULL)
printf ("found a 't' at %s\n", s);
return 0;
}