Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tcl_gethostname(3) [opendarwin man page]

Tcl_GetHostName(3)					      Tcl Library Procedures						Tcl_GetHostName(3)

__________________________________________________________________________________________________________________________________________________

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 commands. It returns a pointer to a string containing the name for the cur- rent 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 Tcl 8.3 Tcl_GetHostName(3)

Check Out this Related Man Page

Tcl_Concat(3)						      Tcl Library Procedures						     Tcl_Concat(3)

__________________________________________________________________________________________________________________________________________________

NAME
Tcl_Concat - concatenate a collection of strings SYNOPSIS
#include <tcl.h> CONST char * Tcl_Concat(argc, argv) ARGUMENTS
int argc (in) Number of strings. CONST char * CONST argv[](in) Array of strings to concatenate. Must have argc entries. _________________________________________________________________ DESCRIPTION
Tcl_Concat is a utility procedure used by several of the Tcl commands. Given a collection of strings, it concatenates them together into a single string, with the original strings separated by spaces. This procedure behaves differently than Tcl_Merge, in that the arguments are simply concatenated: no effort is made to ensure proper list structure. However, in most common usage the arguments will all be proper lists themselves; if this is true, then the result will also have proper list structure. Tcl_Concat eliminates leading and trailing white space as it copies strings from argv to the result. If an element of argv consists of nothing but white space, then that string is ignored entirely. This white-space removal was added to make the output of the concat command cleaner-looking. The result string is dynamically allocated using Tcl_Alloc; the caller must eventually release the space by calling Tcl_Free. | SEE ALSO
| Tcl_ConcatObj | KEYWORDS
| concatenate, strings | Tcl 7.5 Tcl_Concat(3)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Shopt -s histappend

What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file. # When the shell exits, append to the history file instead of overwriting it shopt -s histappend (3 Replies)
Discussion started by: cokedude
3 Replies

2. OS X (Apple)

Undeletable file

Greetings, I'm trying to delete a file with a weird name from within Terminal on a Mac. It's a very old file (1992) with null characters in the name: “␀␀Word FinderÂŽ Plus™”. Here are some examples of what I've tried: 12FX009:5 dpontius$ ls ␀␀Word FinderÂŽ Plus™ 12FX009:5 dpontius$ rm... (29 Replies)
Discussion started by: dpontius
29 Replies