I have the task of finding out if one of the many strings in my array contains an @ character.
Example -
I am @HOME or @SCHOOL
If the string does contain the @ i want to print out the string.
arr is declared as follows
char* arr[10][100];
I thought of using this
if(strstr(arr[j], "@") != NULL);
{
printf("hey\n");
}
but it prints out every single string whether or not they have the @.