Shachar Shemesh wrote:
David Laight wrote:
Be aware that strncyp() rarely DTRT, in particular:
- it doesn't guarantee to zero terminate the target
- it is required to zero fill the target buffer
Neither of these is usually desirable.
Well aware of both. Thanks. I'm routinely giving lectures about them (http://shemesh.biz/lectures).
Seems like it's not my day for URLs.
http://shemesh.biz/lecures.html
Shachar