Xref: utzoo comp.lang.c:21340 comp.lang.c++:4515 Path: utzoo!attcan!utgpu!watmath!att!dptg!rutgers!usc!ginosko!uunet!mcsun!unido!uklirb!incas!tbecker From: tbecker@incas.UUCP (Thomas Becker) Newsgroups: comp.lang.c,comp.lang.c++ Subject: Re: ttyname() - question Message-ID: <2613@incas.UUCP> Date: 30 Aug 89 08:59:11 GMT References: <99@lkbpyr.UUCP> Followup-To: comp.lang.c Organization: University of Kaiserslautern, W-Germany Lines: 19 jonas@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@lkbpyr.lkb.se Thomas -- Thomas Becker --------- University of Kaiserslautern ------------- West Germany ------------ P.O. Box 3049 -------------------- D-6750 Kaiserslautern --------- -------------------- e-mail: incas!tbecker@uklirb.uucp ------------------------ ------------------------- phone: +49 631 205 3295 -----------------------------