source:
trunk/libs/newlib/src/newlib/libc/sys/linux/ctermid.c
Last change on this file was 444, checked in by , 6 years ago | |
---|---|
File size: 198 bytes |
Line | |
---|---|
1 | /* ctermid */ |
2 | |
3 | #include <stdio.h> |
4 | #include <string.h> |
5 | |
6 | static char devname[] = "/dev/tty"; |
7 | |
8 | char * |
9 | ctermid (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.