I have the char *ptr returned form strstr, but I am wondering how to get it to be an index in an arrayI have tried typecasting it to an int, but it gives me the memory address. Does anyone have any ideas?Code:char *ptr; char string[]="This is a string\n"); char what_to_look_for[]="a string"); if((ptr=strstr(string,what_to_look_for))!=NULL){ printf("Found it...It is the %ith character",???); }