C if condition not working as expected
c, syntax
Solution
In C, you have to use `strcmp()`, much like you have to use `.equals()` in Java:
if (strcmp(data[0], "BG01") == 0) ...
Problem
All, I come from java and php world so this maybe a factor. But I have a problem with: ``` printf("%s\n",data[0]); if(data[0] == "BG01") { printf("%s\n",otherstring); } ``` The problem is that first printf returns in the console "BG01" but for some reason the IF condition doesn't pick up on it and the second printf never gets executed. What's wrong with this picture? Thanks, goe