Go to main content

man pages section 3: Extended Library Functions, Volume 1

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

Tcl_GetHostName (3tcl)

Name

Tcl_GetHostName - get the name of the local host

Synopsis

#include <tcl.h>

const char *
Tcl_GetHostName()

Description

Tcl_GetHostName(3tcl)       Tcl Library Procedures       Tcl_GetHostName(3tcl)



______________________________________________________________________________

NAME
       Tcl_GetHostName - get the name of the local host

SYNOPSIS
       #include <tcl.h>

       const 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(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | runtime/tcl-8    |
       +---------------+------------------+
       |Stability      | Uncommitted      |
       +---------------+------------------+

NOTES
       Source  code  for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source was downloaded from  http://prdownloads.sourceforge.net/tcl/tcl-
       core8.6.7-src.tar.gz.

       Further information about this software can be found on the open source
       community website at https://www.tcl.tk/.



Tcl                                   8.3                Tcl_GetHostName(3tcl)