| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Pointers |
Hello tom_torfs! 06 Sep 03 02:06, Kurt Kuzba wrote to All: BS>> Indeed, but how is it in C, with integers, i've defined TRUE BS>> as 1 and FALSE as 0, is BS>> if(function(parm) == TRUE) BS>> nessersary or could I use if(function(parm)) ? KK> By default, 0 is equal to untrue. If you test a value, such as KK> a pointer, the conditional will be true for any nonzero value. Okay. KK> if(myPointer) free(myPointer); The same as if(myPointer != NULL) i bet? Regards, Bo --- Squish/Linux v1.12.002 BETA* Origin: The Night Express, Roennede Dk (2:236/100) SEEN-BY: 633/267 270 @PATH: 236/100 237/9 20/11 106/1 2000 633/267 |
|
| 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™.