in reply to Re: How is perl able to handle the null byte?
in thread How is perl able to handle the null byte?
Quite true. Strictly speaking, C doesn't have a string type: what's conventionally used instead is a pointer to a (single) character which is equivalent to an array of characters because of the way C arrays work 1]. The "string type" in C is literally "char *".
1] C arrays do not really have a length either, defining an array with a certain length only reserves that amount of memory, the length isn't stored anywhere.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How is perl able to handle the null byte?
by ChemBoy (Priest) on Jun 15, 2006 at 21:50 UTC |
In Section
Seekers of Perl Wisdom