In c++ I know you could check for black space by

Code:
if(string[i]==' ')
In c this is not working for me. Does c represent a blank space differently?

My code looks like this but the blank spaces are not skipped.

Code:
 while (string[i] == ' '){ i++;}