MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

Anonymous
Unregistered
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.







Entire thread
Subject Posted by Posted on
* g*DELETED* *DELETED* italieAdministrator 11/10/08 02:49 AM
. * C coders, what method do you use to clear a character array? italieAdministrator  11/10/08 02:54 AM
. * Re: C coders, what method do you use to clear a character array? krick  11/10/08 05:44 AM
. * Re: C coders, what method do you use to clear a character array? Anonymous  11/19/08 11:59 AM
. * Re: C coders, what method do you use to clear a character array? Mario Figueiredo  11/23/08 04:19 AM
. * Re: C coders, what method do you use to clear a character array? Anonymous  12/30/08 12:10 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 18 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3636