k9core

Unnamed repository
Log | Files | Refs | LICENSE

commit cd73c58a8888c0f557c4ab3a6f6a92c81576c452
parent fdd35796cb7a2289d33d85ef0e8003964ae69a7d
Author: qorg11 <qorg@vxempire.xyz>
Date:   Fri,  7 Aug 2020 00:17:15 +0200

tty(1), which prints the name of the teletypewriter you're using.

Diffstat:
Asrc/tty.c | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/tty.c b/src/tty.c @@ -0,0 +1,9 @@ +#include <unistd.h> +#include <stdio.h> + +int +main(void) +{ + printf("%s\n",ttyname(1)); + return 0; +}