Retro68/gcc/newlib/libc/sys/linux/ctermid.c
2012-03-27 01:51:53 +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");
}