Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pconner
· 12y ago · 0 comments
The safe way to use strcpy is to use strncpy
Comments
[–]
abadcafe
12y ago
no,strncpy is worse than strcpy,the right way is strlcpy.
[–]
gandalf013
12y ago
http://benpfaff.org/writings/clc/strncpy.html