Get the domain name of the current host
#include <unistd.h> int getdomainname( char * name, size_t namelen );
libsocket
Use the -l socket option to qcc to link against this library.
The getdomainname() function gets the standard domain name for the current processor and stores it in the buffer that name points to. The name is null-terminated.
If the buffer is too small, the name is truncated. |
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |