Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
yxhuvud
on June 11, 2012
|
parent
|
context
|
favorite
| on:
Learn C The Hard Way by Zed Shaw
No, you should NOT use strncpy instead. It can create broken strings that are not NULL terminated.
I would suggest using strlcpy.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
I would suggest using strlcpy.