ttyname() - question

Doug Gwyn gwyn at smoke.BRL.MIL
Fri Sep 1 08:47:39 AEST 1989


In article <1860001 at hppad.HP.COM> bazza at hppad.HP.COM (Carlos Bazzarella) writes:
>The second one doesn't work because when the 
>compiler gets to main() and sees test(), he doesn't
>know what to do with it, since it was not 
>previously defined or compiled.

Therefore "test" must be the name of an function returning int,
as has always been the rule in C.  Later that is how it is defined,
although the required return statement was omitted.  Try again..



More information about the Comp.lang.c mailing list