In an attempt to mimic behaviour of fgets in C, it appears that PHP defines the $length argument as the number of characters - 1 that should be read.
The length argument to fgets in C includes the '\0', but PHP really has no reason to care about that issue.
Sunday, July 12, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment