Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ctermid(3P) — NEXTSTEP 4.0pr1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ttyname(3P)

CTERMID(3P)  —  UNIX Programmer’s Manual

NAME

ctermid − (POSIX only) generate the pathname associated with a terminal

SYNOPSIS

#include <stdio.h>

char ∗ctermid(char ∗s);

DESCRIPTION

The information in this specification applies only to POSIX applications. 

The ctermid function generates a strings that, when used as a pathname, refers to the current controlling terminal for the calling process. 

RETURN VALUE

A pointer to a string is returned.  The string is static.  A empty string is returned if the controlling terminal cannot be determined. 

SEE ALSO

ttyname(3P)

4th Berkeley Distribution  —  August 1, 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026