source: trunk/libs/newlib/src/newlib/libc/sys/linux/ctermid.c

Last change on this file was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 198 bytes
Line 
1/* ctermid */
2
3#include <stdio.h>
4#include <string.h>
5
6static char devname[] = "/dev/tty";
7
8char *
9ctermid (char *buf)
10{
11  if (buf == NULL)
12    return devname;
13
14  return strcpy (buf, "/dev/tty");
15}
Note: See TracBrowser for help on using the repository browser.