HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by shawxe | Hacker News Reader
Parent
Full thread
shawxe
·
That's what strlcpy() is for.
View on HN
saagarjha
·
Or strncpy, if you'd like to stay within the standard and your strings are small.
Reply on news.ycombinator.com