#include <stdio.h>
#include <string.h>
int main () {
int len;
const char str[] = "http://www.yiibai.com";
const char ch = '.';
char *ret;
ret = strrchr(str, ch);
printf("String after |%c| is - |%s|/n", ch, ret);
return(0);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/265281.html