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