#include <string.h>
char *strrchr(const char *s, int c);
#include <stdio.h>
#include <string.h>
int main(void)
{
char *p = "strrchr function returns a pointer to the last occurrence of the character c in the string s.";
char *sp = strrchr (p, 'i');
printf ("%s\n", sp);
return 0;
}
$ ./strrchr
ing s.
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |