News for hackers. Stuff that matters.
Re:Massacring C Pointers by saagarjha on Tuesday June 26, 2018 @03:13AM (#17398520)
There's strlcpy, but it's not part of POSIX unfortunately.
Re:Massacring C Pointers by slrz on Tuesday June 26, 2018 @04:53PM (#17403899)

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