Y
Hacker News
new
|
ask
|
show
|
jobs
by
saagarjha
3085 days ago
There's strlcpy, but it's not part of POSIX unfortunately.
1 comments
slrz
3084 days ago
#define strlcpy(d, s, n) snprintf(d, n, "%s", s)
Not quite the same (different return type) but close.
link