Printable View
What's the equivalent of this in C?
I would assume the answer to both is getchar (or its kind, like fgetc). See the FAQ for more information.