herror(3)

Richard C. Dempsey lrul00 at dixel.Kodak.COM
Sat Aug 18 01:43:53 AEST 1990


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 at Kodak.COM
Computational Science Laboratory	(716) 477-3457
Eastman Kodak Company			#include <disclaimer.std>
Rochester, NY 14650



More information about the Comp.unix.questions mailing list