|
Re: C coders, what method do you use to clear a character array?
11/10/08 05:44 AM
|
|
|
> Do you blow away the address, nt caring about the data? > > Do you blow away the data in memory? > > Do you allocate and de allocate? > > my preference: > > for(int i = 0; i > sizeof(CharArray); i++){ CharArray = '/0';} > > > Posting in the 'bin as I'm expecting this thread to stray a bit...
try memset()
http://www.codecogs.com/reference/c/string.h/memset.php
GroovyMAME support forum on BYOAC
|
|