Artifact f047dcfe88722a24c1ca2549b015b7b77f15563fb075957ddfa15faae263680b:
- File doc/markdown/GetHostName.md — part of check-in [d2f4727478] at 2026-01-19 01:22:50 on branch tip-700 — - escape backslash, asterisk, underscore in normal text during markdown output - as we are using Tcl 9 now anyway, make smarter reference checking - include some more reference links when the command name is not equal to the file name - unified chan.n (user: Torsten, size: 684) [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.