sethostname TCP UDP
Sets the host name with the given value in the character array.
Files
net_bsd.h/net_bsd.c
Prototype
int sethostname (const char *host_name, _size_t name_len);
Arguments
host_name
Character array with the desired host name.
name_len
Specifies the number of bytes in the given host name string.
Returned Value
0, if no error.
-1, otherwise.