home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- From: nikki@trmphrst.demon.co.uk (Nikki Locke)
- Path: sparky!uunet!pipex!demon!trmphrst.demon.co.uk!nikki
- Distribution: world
- Subject: Re: Novice Questions
- References: <1992Aug31.160703.324@ziff.com>
- X-Mailer: cppnews $Revision: 1.14 $
- Organization: Trumphurst Ltd.
- Lines: 22
- Date: Wed, 2 Sep 1992 09:43:09 +0000
- Message-ID: <715452189snx@trmphrst.demon.co.uk>
- Sender: usenet@gate.demon.co.uk
-
-
- In article <1992Aug31.160703.324@ziff.com> jliberty@zdi.ziff.com writes:
-
- > One aside, the orig. author seems to have the whole issue of "nulls"
- > confused. It may be worth pointing out that the way c (and c++) checks
- > for end of string is with a NULL (or zero).
-
- I HATE it when people do that ! (:-)
-
- NULL is a POINTER which is guaranteed not to point to any valid location.
- It may or may not have the bit pattern all zeroes.
-
- '\0' (ASCII NUL) is the CHARACTER which is used to terminate strings.
-
- Please do not confuse the novice by using NULL to mean NUL.
-
- ---
- Nikki Locke | | nikki@trmphrst.demon.co.uk
- Trumphurst Ltd. | Tel: +44 (0)691-670318 | nikki@cix.compulink.co.uk
- PC and Unix consultancy | Fax: +44 (0)691-670316 | nikki@kewill.co.uk
- trmphrst.demon.co.uk is NOT affiliated with ANY other sites at demon.co.uk.
- Demon.co.uk is a dial-up subscription access point to the Internet.
-