|
-
February 18th, 2010, 07:03 PM
#8
Re: memset problem
 Originally Posted by GCDEF
You told it to copy 5 bytes. The null is in the sixth position.
And even if you had copied at, you would have overwritten it with a space next.
More computing sins are committed in the name of efficiency (without necessarily achieving it) than for any other single reason - including blind stupidity. --W.A.Wulf
Premature optimization is the root of all evil --Donald E. Knuth
Please read Information on posting before posting, especially the info on using [code] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|