read_input function and use test fixture
test for max buffer len
use fgets instead of fgetc
parse command line