Files
seta75D ff309bfe1c Init
2021-10-11 18:37:13 -03:00

17 lines
303 B
C

#if !defined(lint) && defined(SCCSIDS)
static char sccsid[] = "@(#)ctermid.c 1.1 94/10/31 SMI"; /* from S5R2 1.3 */
#endif
/*LINTLIBRARY*/
#include <stdio.h>
extern char *strcpy();
static char res[L_ctermid];
char *
ctermid(s)
register char *s;
{
return (strcpy(s != NULL ? s : res, "/dev/tty"));
}