DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
X Version 11 (Release 6.1)

XmuGetHostname(X3xmu)


XmuGetHostname -- host name

Synopsis

cc . . . -lXmu

#include <X11/Xmu/Error.h>

int XmuGetHostname(buf, maxlen) char *buf; int maxlen;

Arguments


buf
returns the host name

maxlen
specifies the length of buf

Description

The XmuGetHostname function stores the null-terminated name of the local host in buf, and returns length of the name. The function hides operating system differences, such as whether to call gethostbyname or uname.

References

gethostbyname(3N), uname(1)
Xlib - C Language X Interface


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004