newlib-cygwin/newlib/libc/sys/linux/ctermid.c

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");
}