Retro68/gcc/newlib/libc/sys/linux/ctermid.c
Wolfgang Thaller d464252791 re-add newlib
2017-04-11 23:13:36 +02:00

17 lines
218 B
C

/* ctermid */
#include <stdio.h>
#include <string.h>
static char devname[] = "/dev/tty";
char *
_DEFUN (ctermid, (buf),
char *buf)
{
if (buf == NULL)
return devname;
return strcpy (buf, "/dev/tty");
}