ttyname() - question

Thomas Becker tbecker at incas.UUCP
Wed Aug 30 18:59:11 AEST 1989


jonas at lkbpyr.UUCP (Jonas Heyman) writes:

>	printf("%d",term);
                ^^
yes, of course, use %d ...

Anyway, I have tried the two versions on a Sun 3/60 and found out the same.
The manpage of ttyname(3) says that the function takes a field descritor as
an argument. So I tried to call ttyname(NULL) within test(), and it worked!

>  jonas at lkbpyr.lkb.se 

Thomas

-- 
Thomas Becker --------- University of Kaiserslautern ------------- West Germany
------------ P.O. Box 3049 -------------------- D-6750 Kaiserslautern ---------
-------------------- e-mail: incas!tbecker at uklirb.uucp ------------------------
------------------------- phone: +49 631 205 3295 -----------------------------



More information about the Comp.lang.c mailing list