summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/unistd/ctermid.c
blob: 1612770af158ce068e2b9a1ecc89c4d910d76edd (plain)
1
2
3
4
5
6
7
#include <stdio.h>
#include <string.h>

char *ctermid(char *s)
{
	return s ? strcpy(s, "/dev/tty") : "/dev/tty";
}