#include char *str_char(char *s, int c) { for ( ; *s; s++) { if (*s==c) { return s; } } return NULL; } int main(void) { char *ptr; char fox[] = "The quick brown fox jumps over the lazy dog."; ptr = str_char(fox, 'z'); if (ptr) { printf("%s\n", ptr); } return 0; }