Tcl_GetHostName(3) Tcl Library Procedures Tcl_GetHostName(3)______________________________________________________________________________NAME
Tcl_GetHostName - get the name of the local host
SYNOPSIS
#include <tcl.h>
char *
Tcl_GetHostName()DESCRIPTION
Tcl_GetHostName is a utility procedure used by some of the Tcl com‐
mands. It returns a pointer to a string containing the name for the
current machine, or an empty string if the name cannot be determined.
The string is statically allocated, and the caller must not modify of
free it.
KEYWORDS
hostname
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
┌────────────────────┬─────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├────────────────────┼─────────────────┤
│Availability │ SUNWTcl │
├────────────────────┼─────────────────┤
│Interface Stability │ External │
└────────────────────┴─────────────────┘
NOTES
Source for Tcl is available in the SUNWTclS package.
Tcl 8.3 Tcl_GetHostName(3)