| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Void |
JG> Hello Keith,
JG> VOID is placed in front of functions to indicate that the function return
JG> nothing. The default is for a function to return an INT. This has no real
JG> purpose except to give the compiler some information for the purposes of er
JG> checking.
JG>
JG> If you were to ask a function to return something, e.g. key=get_a_key(); b
JG> the function had been prototyped as a VOID, i.e. VOID get_a_key(); the
JG> compiler will tell you that you messed up.
JG>
JG> Any clearer? Or did I make it worse?
JG>
JG> John
JG>
Hello, yep, that made it alot clearer.. i have seen several programs with
a VOID Funtion_name(void) i know what it means now!..thanks..Cya!
Keith
--- GEcho 1.00
* Origin: DarkZone BBS, NODE1 V.34+ V.fc HST +61-63-726978 (3:623/683)SEEN-BY: 50/99 78/0 620/243 623/411 630 631 683 812 711/401 409 410 413 430 SEEN-BY: 711/510 808 809 932 934 712/515 713/888 714/906 800/1 7877/2809 @PATH: 623/683 630 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
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™.