|
-
June 17th, 2002, 11:44 AM
#1
memset to null a buffer
I am using a character buffer repeatedly. For example to converti integer numbers to ascii. How do I null out the buffer if I use it over and ove. I know about memset, but I don't know what to copy into the variable using memset. Should I just copy the '\0' character into the first position using memset? Is '\0' the correct
character to fill it with?
So for example char buffer[1024];
How do I null out this buffer using memset.
Thank you for your help.
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
|