Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Dec 1996 10:13:32 -0800 (PST)
From:      "Jordan K. Hubbard" <jkh@time.cdrom.com>
To:        hackers@freebsd.org
Subject:   gethostname() - returns long or int?
Message-ID:  <199612051813.KAA21859@time.cdrom.com>

next in thread | raw e-mail | index | archive | help
>From our source code:

long  
gethostname(name, namelen)
        char *name;
        int namelen;

>From our header file (unistd.h):

/usr/include/unistd.h:int        gethostname __P((char *, int));

Which is correct?

					Jordan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612051813.KAA21859>