|
Re: C coders, what method do you use to clear a character array?
12/30/08 12:10 PM
|
|
|
keeping the count only really works if it's a string that you're storing, for C you generally use null terminated strings so putting a 0 at the start would achieve the same thing. if you're storing something like useage counts or the char array is a bitmap you're drawing into then you will need to clear it properly.
also clearing memory is useful for security, you don't want to keep passwords around in ram longer than you need.
|
|