X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: allocate memory Date: 19 Dec 2003 01:50:35 GMT Organization: Aachen University of Technology (RWTH) Lines: 12 Message-ID: References: <20031218074852 DOT 21755 DOT 00000680 AT mb-m26 DOT aol DOT com> <3FE213CB DOT 6050903 AT phekda DOT gotadsl DOT co DOT uk> NNTP-Posting-Host: accip02.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1071798635 12554 137.226.33.41 (19 Dec 2003 01:50:35 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 19 Dec 2003 01:50:35 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Richard Dawe wrote: > memset(array, 0, sizeof(array)); A note of caution: while this works in this case, memset() is *not* really guaranteed to work for other cases. E.g. if the array contains floats, or you're on some crazy platform that has trap representations in signed integers, you might run into trouble. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.