TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Bo Simonsen
from: Roy J. Tellason
date: 2003-09-06 20:01:28
subject: Pointers

Bo Simonsen wrote in a message to Roy J. Tellason:

 BS>> Indeed, but how is it in C, with integers, i've defined TRUE as 1
 BS>> and FALSE as 0, is

 BS>>         if(function(parm) == TRUE)

 BS>> nessersary or could I use if(function(parm)) ?

 RT> I think a better definition would be to #define FALSE 0 and TRUE
 RT> !FALSE - in other words,  nonzero.

 BS> Hmm.. How could the compiler handle that?

The compiler?  The preprocessor would take care of it...

--- 
* Origin: TANSTAAFL BBS 717-838-8539 (1:270/615)
SEEN-BY: 633/267 270
@PATH: 270/615 150/220 379/1 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™.