summaryrefslogtreecommitdiff
path: root/tcl/doc/GetHostName.3
diff options
context:
space:
mode:
Diffstat (limited to 'tcl/doc/GetHostName.3')
-rw-r--r--tcl/doc/GetHostName.329
1 files changed, 29 insertions, 0 deletions
diff --git a/tcl/doc/GetHostName.3 b/tcl/doc/GetHostName.3
new file mode 100644
index 00000000000..576c867196c
--- /dev/null
+++ b/tcl/doc/GetHostName.3
@@ -0,0 +1,29 @@
+'\"
+'\" Copyright (c) 1998-2000 by Scriptics Corporation.
+'\" All rights reserved.
+'\"
+'\" RCS: @(#) $Id$
+'\"
+.so man.macros
+.TH Tcl_GetHostName 3 8.3 Tcl "Tcl Library Procedures"
+.BS
+.SH NAME
+Tcl_GetHostName \- get the name of the local host
+.SH SYNOPSIS
+.nf
+\fB#include <tcl.h>\fR
+.sp
+char *
+\fBTcl_GetHostName\fR()
+
+.SH DESCRIPTION
+.PP
+\fBTcl_GetHostName\fR 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.
+.PP
+.SH KEYWORDS
+hostname
+