int main(void)
{
char string[15];
char *ptr, c = 's';
strcpy(string, "This is a string");
ptr = strchr(string, c);
if (ptr)
printf("The character %c is at position: %d
", c, ptr-string);
else
printf("The character was not found
");
return 0;
}