## Tcl9.0.3/Tk9.0.3 Documentation > Tcl C API > GetHostName

### Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API

### NAME

Tcl_GetHostName — 局所亭主の名前を得る　 get the name of the local host

### SYNOPSIS

#include <tcl.h>
const char *
Tcl_GetHostName()

### 説明 DESCRIPTION

Tcl_GetHostName はある Tcl commands.によって使われる便益手続函数である｡それは現在の装置についての名前を含む文字列へのポインターを返すか､名前が定められない場合は空文字列を返す｡文字列は静的に割付けられ呼出し側はそれを修正したり解放したりしてはならない｡ 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.

### KEYWORDS

hostname
Copyright © 1998-2000 Scriptics Corporation.