Re:C String Creation
by kevin_thibedeau on Thursday February 11, 2016 @08:25PM
(#11084719)
I see too much damage caused by strncpy() to ever recommend it for use. Code that is blissfully unaware of the non-guaranteed NUL or that repetitively does extra work to guarantee a NUL. Use strlcpy() if available or reimplement it.
[ Parent
| on HN ]