strchr( ) function: locate the first occurrence of a character in a string.
#include <stdio.h> #include <string.h> char s1[20] = "What is a friend?"; char *answer; int main( ) { answer=strchr(s1,' '); printf("After the first blank: %s\n",answer); return (0); }