In article <3EBA5031.EDABF9C2@gmx.de>,
Christoph Hormann <chr### [at] gmx de> wrote:
> No, i think he means if the file contains a '\0' this will result in a
> '\0' :-)
>
> '\0' indicates the end of a string so this would mess up the whole thing.
Only on null-terminated strings. If you store the length separately, you
don't need a null terminator and can have any byte value in the string.
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|