Article View: nl.comp.programmeren
Article #274Re: Lijnen tellen van een project
From: Johan Wevers
Date: Thu, 27 Jan 2005 20:26
Date: Thu, 27 Jan 2005 20:26
26 lines
1544 bytes
1544 bytes
Dr.Ruud <rvtol+news@isolution.nl> wrote: >OK, nu volg ik je. Nee, NULL en 0 zijn niet echt verschillend. >Soms is NULL gedefineerd als "((void *) 0)" maar dat wordt vrij >algemeen als onjuist gezien. Beter is 0 of (0) of 0L of (0L). [...] >value for a pointer. NULL is defined in <stdio.h>." En wat zegt stdio.h erover (versie van gcc 2.7.2.2, niet echt nieuw dus): #ifndef NULL #ifdef __cplusplus #define NULL 0 #else #define NULL (void*)0 #endif #endif Jij hebt blijkbaar meer C++ dan C literatuur gelezen. -- ir. J.C.A. Wevers // Physics and science fiction site: johanw@vulcan.xs4all.nl // http://www.xs4all.nl/~johanw/index.html PGP/GPG public keys at http://www.xs4all.nl/~johanw/pgpkeys.html
Technical Details
Message-ID:
<IAzss6.39s@vulcan.xs4all.nl>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!transit.news.xs4all.nl!post.news.xs4all.nl!uucp.xs4all.nl!xs4all!vulcan!johanwReferences:
<%XJId.2415$OZ2.252982@phobos.telenet-ops.be> <ct6veq.4f8.1@news.isolution.nl> <Xns95EA98A5B4Dcastleam <ctb9bk.1q8.1@news.isolution.nl>Show Full Headers
Complete Article Headers
X-Google-Thread: 107324,ab34a8b99e320381 X-Google-Thread: fcea4,ab34a8b99e320381 X-Google-Attributes: gid107324,gidfcea4,public X-Google-Language: DUTCH,ASCII-7-bit Newsgroups: nl.comp.programmeren,be.comp.programming Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!transit.news.xs4all.nl!post.news.xs4all.nl!uucp.xs4all.nl!xs4all!vulcan!johanw From: johanw@vulcan.xs4all.nl (Johan Wevers) Subject: Re: Lijnen tellen van een project Organization: Vulcan Academy of Sciences Message-ID: <IAzss6.39s@vulcan.xs4all.nl> References: <%XJId.2415$OZ2.252982@phobos.telenet-ops.be> <ct6veq.4f8.1@news.isolution.nl> <Xns95EA98A5B4Dcastleam <ctb9bk.1q8.1@news.isolution.nl> Date: Thu, 27 Jan 2005 20:26:30 GMT Lines: 26