#include char *StrChar(char *s, const char c) { while (*s != c && *s != '\0') s++; if (*s == '\0') return (NULL); else return (s); } void main(void) { char *p; char c; char str[ ] = "abcdefghijklmnopqrstuvwxyz"; printf("str = %s\n", str); printf("Please enter one letter\t"); scanf("%c", &c); p = StrChar(str, c); printf("\nStrChar(str, '%c');\n", c); if (p != NULL) printf("%s\n\n", p); else printf("can not find!\n"); }