www.delorie.com/djgpp/doc/libc/libc_126.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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

ANSI/ISO C No
POSIX 1003.2-1992; 1003.1-2001


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004