🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2399

Re: references wanted

#2399
From: Chris Hockett
Date: Wed, 27 Mar 1996 00:56
11 lines
583 bytes
What is wrong with typecasting NULL to whatever type you are 
testing against?

i.e.

tMyType *ptr;

if(ptr == (tMyType *) NULL)
   ...

CAH
Technical Details
Message-ID: <4ja3of$p7m@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4imak1$e0j@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: Chris Hockett <75024.3236@CompuServe.COM>
Newsgroups: comp.lang.c.moderated
Subject: Re: references wanted
Date: 26 Mar 1996 18:56:47 -0600
Organization: CompuServe, Inc. (1-800-689-0736)
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4ja3of$p7m@solutions.solon.com>
References: <4imak1$e0j@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com