http://www.cplusplus.com/reference/c...tdio/getc.html