News for hackers. Stuff that matters.
Re:Once upon a time, memory allocators made sense by tbirdz on Monday January 18, 2016 @09:02AM (#10924392)
A standard C string will never be 0 bytes. There is the zero terminator at the end of the string, so all strings will be at least 1 byte large.
Re:Once upon a time, memory allocators made sense by carussell on Monday January 18, 2016 @09:16AM (#10924472)
The example is clearly forgoing the use of standard C strings for a char array tagged with the length.