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