Factor out read_line().
-rw-r--r-- 20485 booklook.c
-rwxr-xr-x 24954 remoteglot.pl