Mail Archives: djgpp/1998/08/13/11:46:19
Destination: Merlin <merlin__ AT geocities DOT com>
From: Gruber Gerhard
Group: comp.os.msdos.djgpp
Date: Thu, 13 Aug 1998 08:16:15 GMT:
>> No, this isn't a prototype. This is:
>>
>> void do_nothing(void);
>
> if you leave the void in brackets out it will be assumed..
That's wrong.
The function(void) means that you specifically say that these function takes
no arguments. a call like this function(i) yields an error. If you leave the
void out then this means you don't give the compiler a hint what this function
takes. writing function() or function(i) or function(a, b, c, d, e) is
considered valid in this case, so leaving the void out is not the default vor
void. It is totaly different.
--
Bye,
Gerhard
email: sparhawk AT eunet DOT at
g DOT gruber AT sis DOT co DOT at
Spelling corrections are appreciated.
- Raw text -