SYNOPSIS
#include <stdio.h>
char *ctermid(char *s);
DESCRIPTION
The
If used in a threaded application,
PARAMETERS
- s
-
Points to a buffer of at least L_ctermid bytes where the path name is to be placed. If this parameter is NULL, then a static buffer is used.
RETURN VALUES
If s is a null pointer,
CONFORMANCE
POSIX.1 (1996), with exceptions.
MULTITHREAD SAFETY LEVEL
MT-Safe, with exceptions.
This function is only MT-Safe if its parameter is non-NULL.
PORTING ISSUES
The returned path name is always "/dev/tty".
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
ttyname() ,ttyname_r()
PTC MKS Toolkit 10.5 Documentation Build 40.