Go to the first, previous, next, last section, table of contents.


ctermid

Syntax

#include <unistd.h>

char *ctermid(char *s);

Description

This function returns the name of the current terminal device. Under MS-DOS, this is always "con".

Return Value

If s is null, returns pointer to internal static string "con". Otherwise, copies "con" to buffer pointed by s.

Portability

not ANSI, POSIX


Go to the first, previous, next, last section, table of contents.