Manners of getting input. From memory, maybe more later.
x86, 32 & 64b.
read from stdin to a buffer: Will read any character (incl. nulls).
fgets: reads up to n-1. terminates on nulls. adds a newline.
scanf: varargs. takes a format string specifier, eg
getc in a while() loop: probably my least favorite.
port mapped io: x86 instructions