Monday, September 23, 2013

NUL-terminated strings: the most expensive one-byte error ever?

ACM Queue on NUL-terminated character arrays.


"This change was made partially to avoid the limitation on the length of a string caused by holding the count in an 8- or 9-bit slot, and partly because maintaining the count seemed, in our experience, less convenient than using a terminator." - Dennis M. Ritchie

No comments: