Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ctermid.c « linux « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 05914ffad4178621a5af7a48cafbe6d7ab7f664c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* 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");
}