/*
Example: Testing if a string is found or not in C language
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char str[] = "Hello world!";
if(strchr(str, '!') != NULL)
{
printf( "! is found in string");
}
return 0;
}