VMS Help — TCPIP Services, Programming Interfaces, Socket API Functions, gethostname() Arguments
name
The address of a buffer where the name should be returned. The
returned name is null terminated unless sufficient space is not
provided.
namelen
The size of the buffer pointed to by name.