Hi everyone. When I compile the following code using gcc -Wall -Wextra, GCC tells me : "error: a label can only be part of a statement and a declaration is not a statement" for the line after case 2:. I got it to compile by inserting a null statement (ie a semicolon) after the colon in case 2:. Is this correct C99?
char *myptr = strstr (str1 , str2);