GetHostName(3)

GetHostName3

Get the name of the local host

Usage

#include <tcl.h>

const char *
Tcl_GetHostName()

Overview

Tcl_GetHostName is a utility procedure used by some of the Tcl commands. 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

Releases

137 releases since Mac OS X 10.0; the text changed 3 times.

  1. 10.0–10.2.8
  2. 10.3–10.3.9
  3. 10.4–10.4.2
  4. 10.6–26.5

From tcl 152 in macOS 26.5. Parsed by carta from the page's man source.