#include <string.h> void strchr_test() { char *c; c=strchr("what ever you do",'e'); if (c !=NULL) { printf("after this: %s\n",c); } else { printf("no e\n"); } }