NAME
XmuGetHostname — operating system independent routine to get machine name.
SYNOPSIS
#include <X11/Xmu/SysUtil.h>
int XmuGetHostname(buf, maxlen)
char ∗buf;
int maxlen;
ARGUMENTS
bufReturns the host name.
maxlenSpecifies the length of buf.
DESCRIPTION
XmuGetHostname stores the NULL-terminated name of the local host in buf, and returns the length of the name. This function hides operating system differences, such as whether to call gethostname or uname.
Xlib Reference Manual