Article View: nl.comp.programmeren
Article #276Re: Lijnen tellen van een project
From: Stef
Date: Thu, 27 Jan 2005 23:48
Date: Thu, 27 Jan 2005 23:48
27 lines
2098 bytes
2098 bytes
In nl.comp.programmeren, Johan Wevers <johanw@vulcan.xs4all.nl> wrote: >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 > Of de final draft van de C99 standaard (n897): NULL can be defined as any null pointer constant. Thus existing code can retain definitions of NULL as 0 or 0L, but an implementation may also choose to define it as (void*)0. This latter form of definition is convenient on architectures where sizeof(void*) does not equal the size of any integer type. It has never been wise to use NULL in place of an arbitrary pointer as a function argument, however, since pointers to different types need not be the same size. -- Stef (remove caps, dashes and .invalid from e-mail address to reply by mail) Dyslexics have more fnu.
Technical Details
Message-ID:
<20de9$41f97dc7$54f63171$17777@publishnet.news-service.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!lightspeed.eweka.nl!feeder.news-service.com!post.news-service.com!publishnet.news-service.com!not-for-mailReferences:
<%XJId.2415$OZ2.252982@phobos.telenet-ops.be> <ct6veq.4f8.1@news.isolution.nl> <Xns95EA98A5B4Dcastleam <ctb9bk.1q8.1@news.isolution.nl> <IAzss6.39s@vulcan.xs4all.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: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!lightspeed.eweka.nl!feeder.news-service.com!post.news-service.com!publishnet.news-service.com!not-for-mail From: stef33d@yahooI-N-V-A-L-I-D.com.invalid (Stef) Newsgroups: nl.comp.programmeren,be.comp.programming Subject: Re: Lijnen tellen van een project References: <%XJId.2415$OZ2.252982@phobos.telenet-ops.be> <ct6veq.4f8.1@news.isolution.nl> <Xns95EA98A5B4Dcastleam <ctb9bk.1q8.1@news.isolution.nl> <IAzss6.39s@vulcan.xs4all.nl> Organization: None User-Agent: slrn/0.9.6.4 (Linux) Message-ID: <20de9$41f97dc7$54f63171$17777@publishnet.news-service.com> X-Complaints-To: abuse@news-service.com Date: Fri, 28 Jan 2005 00:48:23 +0100 Lines: 27 NNTP-Posting-Host: 84.246.49.113 (84.246.49.113) NNTP-Posting-Date: Fri, 28 Jan 2005 00:48:23 +0100 X-Trace: 20de941f97dc7f15394d417777