I'm trying to write a program that will calculate beats per minute based on tapping a key to the beat. I've been trying to use scanf or getc, and have the key pressed be Enter, so that it would set the variable to NULL, but that hasn't worked. Is there an input function that doesn't require an Enter to continue, just taking the first character it gets? And if not, how could I get using Enter as the key pressed to work?
Thanks,
David