ANSIfication, remove 'register' and 'auto' use, convert K&R procedure decls.
Fix one bug where getc() was being called on a FILE returned by fdopen()
before the a FILE was checked for NULL.
Submitted-by: Chris Pressey <cpressey@catseye.mine.nu>