Don't ask to ask, just ask | |
PerlMonks |
Re^2: How is perl able to handle the null byte?by Joost (Canon) |
on Jun 15, 2006 at 21:07 UTC ( [id://555627]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|