#include <stdio.h>
char *strch(char *str, char c) {
while (*str) {
if (*str == c) {
return str;
}
str++;
}
return NULL;
}
void main() {
char s1[100] = "AABCD123ABCD123ABCDA";
char c = '1';
printf("%s", strch(s1, c));
}
来源:CSDN
作者:轻松的小希
链接:https://blog.csdn.net/qq_38490457/article/details/104633572