4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-22 15:07:43 +08:00
Yaakov Selkowitz 9087163804 ansification: remove _DEFUN
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:26 -06:00

16 lines
198 B
C

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