From: Martin.Svensson@abc.se (Martin Svensson)
DH> in a program where you use say a function called : DOHAPPY();
DH> and the function requires no parameters, then it would be
DH> declared as :
DH>
DH> * DOHAPPY(VOID);
Wait a minute.
First, most compilers don't support CAPITAL reserved words.
Second, you should never let the compiler use a default type. I don't
even think this example would work.
The correct declaration should be complete:
char* dohappy(void); or
char *dohappy(void); or
char* doHappy(void); or
char* DoHappy(void);
The example was pretty good, though.
h
/
M a r t i n
--- ifmail v.2.8f-tx7.7
---------------
* Origin: ABC-klubben, Sweden (2:201/235@fidonet)
|