TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: All
from: Kurt Kuzba
date: 2003-09-08 02:00:14
subject: Pointers

From: Roger Scudder
RS>  If you look at the code in snippets you won't see "if
RS>  (pointer)".  What you will see is "if (NULL != pointer)".
RS>  Unless your goal is to purposely exploit certain loosely
RS>  defined aspects of the language, doing so is, IMHO, just
RS>  bad style.

    True.  The standard only says that there will be a value
 called NULL, which will be defined in a macro which will be
 found in the stddef.h file.  It does not specify what value
 will be specified by NULL.  It is generally zero, and I have
 never heard of it being anything else, but still, implementation
 defined is implementation defined, and not a strict standard.
 There may be further changes to the standard which define NULL
 as being equal to zero, but that has no bearing on anybody doing
 development work on an older compiler which predates any change
 in the standard.  I would consider defining NULL as anything
 other than zero as human error, which puts it right in the midst
 of the realm of possibilities.  :)

Kurt  (WI-USA)

>  kkuzba{at}centurytel.net  http://home.centurytel.net/kkuzba
>  'It is not so dark here,' said Theoden.

--- SoupGate-Win32 v1.05
* Origin: kkuzba{at}centurytel.net (2:292/516.666)
SEEN-BY: 633/267 270
@PATH: 292/516 854 140/1 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™.