italie |
MAME owes italie many thank yous, hah
|
|
|
Reged: 09/20/03
|
Posts: 15243
|
Loc: BoomTown
|
|
Send PM
|
|
C coders, what method do you use to clear a character array?
11/10/08 02:54 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:
Code:
for(int i = 0; i > sizeof(CharArray); i++){ CharArray[i] = '/0';}
Just getting a feel for who's doing what, had a lengthy discussion about this earlier and I'm curious....
|
|