3 ms·
> Not sure where you're getting that interpretation from. That is just plain reading of "null terminator at the end of the buffer", as 'buffer' is just place i
by zajio1am 4y ago
> Not sure where you're getting that interpretation from.
That is just plain reading of "null terminator at the end of the buffer", as 'buffer' is just place in memory, regardless of what is stored in it. 'End of the buffer' is commonly used for end of such reserved memory, not end of valid data in that memory.
But maintaining the null-terminated string in the buffer is much more useful behavior than just maintaining null terminator at the end of the buffer, so it is likely just sloppiness in the documentation.