billfor
June 17th, 2002, 11:44 AM
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.
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.