home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!ziff!ziff!news
- Newsgroups: comp.lang.c++
- Subject: Re: Novice Questions
- Message-ID: <1992Aug31.160703.324@ziff.com>
- From: Jesse Liberty <jliberty@zdi.ziff.com>
- Date: 31 Aug 92 16:07:02 EDT
- References: <1992Aug25.132603.18724@srg.srg.af.mil>
- Distribution: world
- Organization: Ziff Desktop Information
- X-UserAgent: Nuntius v1.1.1d9X-XXDate: Mon, 31 Aug 92 16:11:03 GMTLines: 16
- Lines: 16
-
- 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). This is very different from
- an ascii character zero. Thus, the string "10"
- Would have three guaranteed members
- string[0] == '1'
- string[1] == '0'
- string[2]==0
-
- String 1 is the ascii zero, string 2 is the value zero, and this makes
- all the difference.
-
- Hope that helps some. -j
- Jesse Liberty, Ziff Desktop Information, 25 First St., Cambridge MA 02141
- Internet: jliberty@zdi.ziff.com CIS/ZiffNet: 72241,72
- Voice: (617) 252-5285 Fax: (617) 252-5403
-