Wanted to check if a returned string is an empty character constant. if(strTemp[0] == '') Would return en error. Here's the correct solution if(strTemp[0] == '\0') { }