home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 13112 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.1 KB

  1. Path: sparky!uunet!noc.near.net!ziff!ziff!news
  2. Newsgroups: comp.lang.c++
  3. Subject: Re: Novice Questions
  4. Message-ID: <1992Aug31.160703.324@ziff.com>
  5. From: Jesse Liberty <jliberty@zdi.ziff.com>
  6. Date: 31 Aug 92 16:07:02 EDT
  7. References: <1992Aug25.132603.18724@srg.srg.af.mil>
  8. Distribution: world
  9. Organization: Ziff Desktop Information
  10. X-UserAgent: Nuntius v1.1.1d9X-XXDate: Mon, 31 Aug 92 16:11:03 GMTLines: 16
  11. Lines: 16
  12.  
  13. One aside, the orig. author seems to have the whole issue of "nulls"
  14. confused. It may be worth pointing out that the way c (and c++) checks
  15. for end of string is with a NULL (or zero). This is very different from
  16. an ascii character zero.  Thus, the string "10"
  17. Would have three guaranteed members
  18.        string[0]  == '1'
  19.        string[1] == '0'
  20.        string[2]==0
  21.  
  22. String 1 is the ascii zero, string 2 is the value zero, and this makes
  23. all the difference.
  24.  
  25. Hope that helps some. -j
  26. Jesse Liberty, Ziff Desktop Information, 25 First St., Cambridge MA 02141
  27. Internet: jliberty@zdi.ziff.com            CIS/ZiffNet: 72241,72
  28.    Voice: (617) 252-5285                           Fax: (617) 252-5403
  29.