3 ms·
> That second paragraph means that if the string pointed to by s2 is shorter than n characters, it doesn't just copy n characters and add a terminating null cha
by StavrosK 11y ago
> That second paragraph means that if the string pointed to by s2 is shorter than n characters, it doesn't just copy n characters and add a terminating null character, which is what you'd expect.
But what I would expect is that it would copy len(s2) characters, not n.
- deleted 11y ago[deleted]
- patal 11y agoThat's correct. I think the author meant that.