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: bcf36f605ee792f7409ef2b6c788953ac9129ee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* 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");
}