gethostname()

Last-modified: 2006-12-11 (月) 09:42:12

ローカルホストの名前を取得
int gethostname(
    char* name,
int namelen
);


name

  • A pointer to a buffer that will receive the host name.

namelen

  • The length of the buffer.