Path: utzoo!mnetor!uunet!husc6!uwvax!oddjob!hao!ames!ucbcad!ucbvax!decvax!decwrl!pyramid!voder!apple!baum From: baum@apple.UUCP (Allen J. Baum) Newsgroups: comp.arch Subject: Re: Null-terminated C strings Message-ID: <7085@apple.UUCP> Date: 21 Dec 87 23:50:45 GMT References: <261@ivory.SanDiego.NCR.COM> <164@sdeggo.UUCP> <174@quick.COM> Reply-To: baum@apple.UUCP (Allen Baum) Organization: Apple Computer, Inc. Lines: 14 -------- [] >In article <174@quick.COM> srg@quick.COM (Spencer Garrett) writes: >The general paradigm is: > > while (the next character is within the interesting range) > do something interesting with it; > now look at what the uninteresting character was; While this is nice in theory, in practice there can be some very subtle problems with lookahead, especially if the string ends on a page boundary, and the lookahead of the next character causes an access violation. -- {decwrl,hplabs,ihnp4}!nsc!apple!baum (408)973-3385