Hacker News new | ask | show | jobs
by saagarjha 2916 days ago
There's strlcpy, but it's not part of POSIX unfortunately.
1 comments

  #define strlcpy(d, s, n) snprintf(d, n, "%s", s)
Not quite the same (different return type) but close.