#include <stdio.h>
#include <string.h>
int main () {
const char haystack[20] = "Yiibai Point";
const char needle[10] = "Point";
char *ret;
ret = strstr(haystack, needle);
printf("The substring is: %s/n", ret);
return(0);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/265283.html