XmuGetHostname(X3xmu) X Version 11 (Release 6.1)


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


30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.