#include <stdio.h>
#include <string.h>
int main () {
const char str1[] = "abcde2fghi3jk4l";
const char str2[] = "34";
char *ret;
ret = strpbrk(str1, str2);
if(ret) {
printf("First matching character: %c/n", *ret);
} else {
printf("Character not found");
}
return(0);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/265280.html