mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-23 16:34:07 +00:00
13 lines
271 B
C
13 lines
271 B
C
/* ttyname - find name of a terminal */
|
|
/* returns "CON:" if isatty, NULL o.w., under CP/M */
|
|
#include <portab.h>
|
|
#include <cpm.h>
|
|
EXTERN BYTE __tname[]; /* CON: String */
|
|
BYTE *ttyname(fd)
|
|
WORD fd;
|
|
{
|
|
if( isatty(fd) )
|
|
return(__tname);
|
|
else return((BYTE *)NULL);
|
|
}
|