MEMO_MEMO_MEMO
Tuesday, October 15, 2013
strncpy and null termination
strncpy does not put \n if the length fits its destination array. Needs to assure the string is null terminated in some way.
Ref:
http://www.thinkage.ca/english/gcos/expl/c/lib/strncp.html
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment