Artifact 2cb165341ddbb2cdc2a6f3baa800bb77c5f3649b292c34ae2a148f54c1472c1a:
- File doc/markdown/GetHostName.md — part of check-in [61e103c3e2] at 2025-07-20 07:06:12 on branch tip-700 — - added 55 section 3 manual pages in initial markdown versions - unified bold font for #include line in TclZlib.3 - removed unnecessary blank line in AddErrInfo.3, GetHostName.3 - unwrapped lines in Synopsis section of CrtAlias.3, FileSystem.3, NRE.3, Method.3 to avoid line breaks - removed prefixed dash from Markdown 'version' attribute - more documentation (user: Torsten, size: 680) [annotate] [blame] [check-ins using]
CommandName: Tcl_GetHostName ManualSection: 3 Version: 8.3 TclPart: Tcl TclDescription: Tcl Library Procedures Keywords:
- hostname Copyright:
- Copyright (c) 1998-2000 Scriptics Corporation. ---
Name
Tcl_GetHostName - get the name of the local host
Synopsis
::: {.synopsis} ::: #include <tcl.h> [const char *]{.ret} [Tcl_GetHostName]{.ccmd}[]{.cargs} :::
Description
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.