Main index | Section 3 | 日本語 | Deutsch | Options |
#include <stdio.h>
If buf is the NULL pointer, a pointer to a static area is returned. Otherwise, the pathname is copied into the memory referenced by buf. The argument buf is assumed to be at least L_ctermid (as defined in the include file <stdio.h>) bytes long.
The ctermid_r() function provides the same functionality as ctermid() except that if buf is a NULL pointer, NULL is returned.
If no suitable lookup of the controlling terminal name can be performed, this implementation returns ‘/dev/tty’.
CTERMID (3) | October 1, 2011 |
Main index | Section 3 | 日本語 | Deutsch | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | Some people, when confronted with a problem, think “I know, I'll use regular expressions.” Now they have two problems. | ” |
— Jamie Zawinski |