q
add errexit and a main.c to test
test by gcc, ok