From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: f7344,2afd440a210c7fb0 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,df8a3dc583bf1f5f X-Google-Attributes: gid1164f8,public From: Paul Sture Subject: Re: Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA * Date: 1998/08/28 Message-ID: <35E6BC16.6F5E11D0@ubs.com>#1/1 X-Deja-AN: 385649235 Content-Transfer-Encoding: 8bit References: <0095000017115526000002L062*@MHS> <35E17279.236FC9E2@ubs.com> <6rukse$3q0$1@usenet01.srv.cis.pitt.edu> <35E3FB05.1B94F00E@ubs.com> <6s3t9l$9ua$1@usenet01.srv.cis.pitt.edu> Organization: Union Bank of Switzerland Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 Newsgroups: comp.os.vms,comp.sys.dec Gregg E Economou wrote: > But it is a convention, yes convention since the beginning, > yes the string handling libraries all assume a null-terminated string, > but you could just as easily use some other means of representing ASCII > text. Thanks for the clarification. I had thought "that is the way it is", rather than a convention. > K&R did set the convention on null-terminated strings, and it is rational > enough, and very flexible, as something which illustrates a higher-level > construct existing in the onctext of C wihtout being a part of the actual > language. To be honest, I don't really like the concept of null-terminated strings, and prefer counted or fixed-length ones. If I'd ever logged all the bugs I've fixed, an analysis of that log would probably spell out a big NO to null-terminated strings. > Certainly there are times when null-termination on strings can be a pain, > and at those times some small management and explicitly sized buffers > can be maintained to keep track of it, or whatever. you're not _bound_ to > null-terminated text in C! Yup. Having successfully managed to avoid much C over the years, you have just demolished one of my excuses -- Paul Sture Z�rich paul dot sture at ubs dot com