HOW TO get TTY id from a c programm
Hi experts,
I am new to linux/c programming and I am trying to get TTY id from my c program. Something like this: int TTYID = get_ttyid(); How do I do that? Regards, _dino_ |
See man ttyname. Sample follows:
Code:
#include <stdio.h> |
All times are GMT -5. The time now is 04:17 PM. |