indent and make this compile -Wall clean like the Makefile suggests that it should. :) Pointed out by: Bruce Evans <bde@zeta.org.au>
Install (optional) libutil.h with prototypes for the functions and document this in the man page. minor cleanups to the various routines, include the prototype file, declare return codes etc.