The gethostname function retrieves the standard host name for the local computer. Syntax int gethostname( [out] char *name, [in] int namelen ); Parameters [out] name A pointer to a buffer that receives the local host name. [in] namelen The length, in bytes, of the buffer pointed to by the name parameter. Return value If no error occurs, gethostname returns zero. Otherwise, it returns SOCKET_ERROR
{{#tags}}- {{label}}
{{/tags}}