From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/MAN/ctermid.htm | 97 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 reference/C/MAN/ctermid.htm (limited to 'reference/C/MAN/ctermid.htm') diff --git a/reference/C/MAN/ctermid.htm b/reference/C/MAN/ctermid.htm new file mode 100644 index 0000000..d852127 --- /dev/null +++ b/reference/C/MAN/ctermid.htm @@ -0,0 +1,97 @@ +ctermid + +
+
+
+
+
+

CTERMID(3) Linux Programmer's Manual CTERMID(3) +

+ +

NAME +

ctermid - get controlling terminal name + +

SYNOPSIS +

#include <stdio.h> + + char *ctermid(char *s); + +

DESCRIPTION +

ctermid() returns a string which is the pathname for the + current controlling terminal for this process. If s is + NULL, a static buffer is used, otherwise s points to a + buffer used to hold the terminal pathname. The symbolic + constant L_ctermid is the maximum number of characters in + the returned pathname. + +

RETURN VALUE +

The pointer to the pathname. + +

CONFORMS TO +

POSIX.1 + +

BUGS +

The path returned may not uniquely identify the control- + ling terminal; it may, for example, be /dev/tty. + + It is not assured that the program can open the terminal. + +
+
+

SEE ALSO +

+ttyname, +

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

GNU April 6, 1993 1 +

+ +
+

+


+

+

+ + + + +
+Top + +Master Index + +Keywords + +Functions +
+
+

+


+ +This manual page was brought to you by mjl_man V-2.0 -- cgit v1.2.3-54-g00ecf