Re:Why is strlen so complex in C?
by saagarjha on Tuesday August 27, 2019 @05:06PM
(#20814407)
Of course–the implementation is free to do whatever it likes. But all reasonable ones will either use a three pointer (or some combination of a base pointer and pointers/integers representation bounds) or include a small buffer for SSO that overlaps with the storage for heap bounds.
[ Parent
| on HN ]
There are no comments on this comment yet.