Weil scanf und co whitespaces herlichst egal sind aus der c++ reference:

Non-whitespace character, except percentage signs (%): Any character that is not either a whitespace character (blank, newline or tab) or part of a format specifier (which begin with a % character) causes the function to read the next character from the stream, compare it to this non-whitespace character and if it matches, it is discarded and the function continues with the next character of format. If the character does not match, the function fails, returning and leaving subsequent characters of the stream unread.
Wuerde sagen verwende fgets da gibt dir den gesamen string und du kannst den usen.

Edit: BB war mal wieder schneller.

MFG