[comp.unix.questions] herror

lrul00@dixel.Kodak.COM (Richard C. Dempsey) (08/17/90)

I just pulled over unix/4.3BSD-tahoe/src/network/ftp.tar.Z from
wuarchive.wustl.edu.  I can't build it because neither my Ultrix system
or my SunOS 4.0.3 system have herror(3) in their libraries.  What does
it do?  More importantly, where can I get it?

                hp = gethostbyname(host);
                if (hp == NULL) {
                        fprintf(stderr, "ftp: %s: ", host);
 =====>                 herror((char *)NULL);
                        code = -1;
                        return((char *) 0);
                }

I speculate that it prints an appropriate error message, like
ferror(3S) or perror(3) ...

Thanks,
--
Richard C. Dempsey			dempsey@Kodak.COM
Computational Science Laboratory	(716) 477-3457
Eastman Kodak Company			#include <disclaimer.std>
Rochester, NY 14650