TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALL
from: MARTIN SVENSSON
date: 1997-10-29 19:14:00
subject: Re: VOID

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.