3 ms·
So, it basically matches the behavior of a string in C, which can also have data in the allocation beyond the null terminator. I really don't see why this is a
by adzm 3mo ago
So, it basically matches the behavior of a string in C, which can also have data in the allocation beyond the null terminator.
I really don't see why this is a problem. It gives out exactly what you give it.
- kristianp 3mo agoNot really, the example shows when the output is different/truncated.