home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 13222 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.3 KB  |  36 lines

  1. Newsgroups: comp.lang.c++
  2. From: nikki@trmphrst.demon.co.uk (Nikki Locke)
  3. Path: sparky!uunet!pipex!demon!trmphrst.demon.co.uk!nikki
  4. Distribution: world
  5. Subject: Re: Novice Questions
  6. References: <1992Aug31.160703.324@ziff.com>
  7. X-Mailer: cppnews $Revision: 1.14 $
  8. Organization: Trumphurst Ltd.
  9. Lines: 22
  10. Date: Wed, 2 Sep 1992 09:43:09 +0000
  11. Message-ID: <715452189snx@trmphrst.demon.co.uk>
  12. Sender: usenet@gate.demon.co.uk
  13.  
  14.  
  15. In article <1992Aug31.160703.324@ziff.com> jliberty@zdi.ziff.com writes:
  16.  
  17. > One aside, the orig. author seems to have the whole issue of "nulls"
  18. > confused. It may be worth pointing out that the way c (and c++) checks
  19. > for end of string is with a NULL (or zero). 
  20.  
  21. I HATE it when people do that ! (:-)
  22.  
  23. NULL is a POINTER which is guaranteed not to point to any valid location. 
  24. It may or may not have the bit pattern all zeroes.
  25.  
  26. '\0' (ASCII NUL) is the CHARACTER which is used to terminate strings.
  27.  
  28. Please do not confuse the novice by using NULL to mean NUL.
  29.  
  30. ---
  31. Nikki Locke              |                        | nikki@trmphrst.demon.co.uk
  32. Trumphurst Ltd.          | Tel: +44 (0)691-670318 | nikki@cix.compulink.co.uk
  33. PC and Unix consultancy  | Fax: +44 (0)691-670316 | nikki@kewill.co.uk
  34. trmphrst.demon.co.uk is NOT affiliated with ANY other sites at demon.co.uk.
  35. Demon.co.uk is a dial-up subscription access point to the Internet.
  36.