#include <stdio.h>
#include <string.h>
int main(void)
{
char *p;
char s[] = "C Programming IDE";
p = (char *) memchr(s, 'm', strlen(s));
if (p != NULL)
printf("Found at position : %ld\n", p - s);
else
printf("'m' not found\n");
return 0;
}
/*
run:
Found at position : 8
*/