Jerry Feldman <gaf@blu.org> [Sat, 31 May 2003 07:54:05 -0400]:
void GetOne()
<nitpick> This isn't a valid Prototype in ISO C, because the compiler can't distinguish between an empty parameter list and K&R definitions. So it should be void GetOne(void) </nitpick>
I would agree with your nitpick here, but C89 very specifically allows this.
I should have been more precise, sorry. At least C89 allows it (can't check ISO C98 as it's at work). It's the compiler that can't distinguish between empty parameter list and K&R definition and thus won't flag passing parameters as an error. That's why I *always* change code to use void and have caught a few bugs in packages where functions first took a parameter and later none but as there was only a K&R prototype the compiler didn't catch it.
Not true. Termios(3) is not dependent upon libncurses at all. I think you are confusing termio with termios. Check the man page for termios.
Yepp, you're right, I confused them. Shows how often I use that stuff myself :) Philipp