use LINE_MAX for default buffer size

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
replace strndup with memcpy for c99 compliance

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
gitignore: add *~ and *.swp

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
t/10-basic: consolidate tests into macro

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
t/10-basic: add mid-file empty lines

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
add sanity test for c99 compliance

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>