Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

> 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.



view as:

That's correct. I think the author meant that.

Legal | privacy