I am trying to figure out how to check if a character is equal to whitespace in C. I know that tabs are '\t' and newlines are '\n', but I want to be able to check for just a regular normal space (from the spacebar) inside of an if statement.
Does anybody know what is the character for this?
There is no particular symbol for whitespace. Whitespace characters are customarily:
' ' space '\t' horizontal tab '\n' newline '\v' vertical tab '\f' feed '\r' carriage return
For just a space, use