logoalt Hacker News

loegyesterday at 2:38 PM0 repliesview on HN

A weird Annex-K like API. The destination buffer size includes space for the trailing nul, but the source size only includes non-nul string bytes.

I don't really think this adds anything over forcing callers to use memcpy directly, instead of strcpy.