Related articles |
---|
[6 earlier articles] |
Re: Pascal vs C style string ? nandu@cs.clemson.edu (1994-06-27) |
Re: Pascal vs C style string ? eifrig@beanworld.cs.jhu.edu (1994-06-28) |
Re: Pascal vs C style string ? monnier@di.epfl.ch (Stefan Monnier) (1994-06-28) |
Re: Pascal vs C style string ? eru@tele.nokia.fi (Erkki Ruohtula) (1994-06-28) |
Re: Pascal vs C style string ? andrew@cee.hw.ac.uk (1994-06-28) |
Re: Pascal vs C style string ? jhallen@world.std.com (1994-06-28) |
Re: Pascal vs C style string ? larryr@pa.dec.com) (1994-06-28) |
Re: Pascal vs C style string ? boehm@parc.xerox.com (1994-06-28) |
Re: Pascal vs C style string ? cjmchale@dsg.cs.tcd.ie (1994-06-29) |
Re: Pascal vs C style string ? nandu@cs.clemson.edu (1994-06-29) |
Re: Pascal vs C style string ? Theo.Norvell@comlab.oxford.ac.uk (1994-06-30) |
Re: Pascal vs C style string ? guerin@IRO.UMontreal.CA (1994-06-30) |
Re: Pascal vs C style string ? synaptx!thymus!daveg@uunet.uu.net (Dave Gillespie) (1994-06-30) |
[2 later articles] |
Newsgroups: | comp.compilers |
From: | larryr@pa.dec.com (Larry Rau (Migration Software)) |
Keywords: | C, Pascal, design |
Organization: | Migration Software |
References: | 94-06-175 94-06-214 |
Date: | Tue, 28 Jun 1994 19:13:58 GMT |
> One hack around that could be to encode the zero byte as
> zero-zero bytes. The decoding routine identifies consecutive
this is a pretty bad hack. not only does it require that you
possibly look beyond your allocated space. it also prevents such
practice as allocating memory and filling it with 0 and then
putting a null-term string in it. now you have "abc\0\0\0\0"
so where is the end? or what is the length?
.....larry
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.