3 ms·
There's strlcpy, but it's not part of POSIX unfortunately.
by saagarjha 8y ago
There's strlcpy, but it's not part of POSIX unfortunately.
- slrz 8y ago#define strlcpy(d, s, n) snprintf(d, n, "%s", s) Not quite the same (different return type) but close.