TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: andrew clarke
from: Roy J. Tellason
date: 2004-01-29 04:05:44
subject: [C] Question about external variable initialization

andrew clarke wrote in a message to Roy J. Tellason:

 ac> Wed 2004-01-28 12:07, Roy J. Tellason (1:270/615) wrote to andrew
 ac> clarke: 

 ac>>                      if (tmptext == NULL)
 ac>>                          return NULL;

 RJT> Or make that
 RJT>                           if (NULL == tmptext)

 ac> Hmm.  Are you left-handed?  (-:

Nope!  But that's an easy way to make the compiler catch it if you
inadvertently leave out one of the = signs,  as I recall Bob pointing out
in here some time back.    :-)

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