GetHostName.3
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:1k
- '"
- '" Copyright (c) 1998-2000 by Scriptics Corporation.
- '" All rights reserved.
- '"
- '" RCS: @(#) $Id: GetHostName.3,v 1.3 2002/11/15 15:34:17 dkf Exp $
- '"
- .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
- CONST char *
- fBTcl_GetHostNamefR()
- .BE
- .SH DESCRIPTION
- .PP
- fBTcl_GetHostNamefR 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