Re: Null-terminated strings: the final analysis.
- From: Joe Wright <joewwright@xxxxxxxxxxx>
- Date: Sun, 12 Apr 2009 13:25:29 -0400
CBFalconer wrote:
Mark Wooding wrote:I believe strings can contain tabs, and other things that don't print but I agree strings cannot contain the NUL character. Further, a text file is corrupted by the NUL character in a line.
... snip ...
And none of this addresses the major defect of null-terminated
strings, which is that they can't represent strings containing
a zero byte.
Bearing in mind that strings contain only printable characters,
what possible use can you have for a zero byte?
--
Joe Wright
"Memory is the second thing to go. I forget what the first is."
.
- Follow-Ups:
- Re: Null-terminated strings: the final analysis.
- From: Mark Wooding
- Re: Null-terminated strings: the final analysis.
- References:
- Re: Null-terminated strings: the final analysis.
- From: Tony
- Re: Null-terminated strings: the final analysis.
- From: Mark McIntyre
- Re: Null-terminated strings: the final analysis.
- From: Mark Wooding
- Re: Null-terminated strings: the final analysis.
- From: CBFalconer
- Re: Null-terminated strings: the final analysis.
- Prev by Date: Re: structure and union queries
- Next by Date: Re: structure and union queries
- Previous by thread: Re: Null-terminated strings: the final analysis.
- Next by thread: Re: Null-terminated strings: the final analysis.
- Index(es):
Relevant Pages
|