I\'m trying to develop a simple text-based hangman game, and the main game loop starts with a prompt to enter a guess at each letter, then goes on to check if the letter is
scanf(" %c", &fooBar);
Notice the space before the %c. This is important, because it matches all preceding whitespace.
%c