What's wrong with printf() , exit() ? (oops)
    Andrew Koenig 
    ark at alice.UucP
       
    Sat May 17 14:22:37 AEST 1986
    
    
  
> Oops.  I mistakenly believed exit and return were both reserved words
> in C but only return is.  There may be compilers that won't accept it
> but they would be wrong.
>
>	printf("usage: foo bar\n") , return 1 ;
>
> seems reasonably "within C's style".  Comments ?
return isn't an expression.  You can't write
	printf("usage: foo bar\n") , if (!fflag) exit(1);
either.
    
    
More information about the Comp.lang.c
mailing list