From: =?ISO-8859-1?Q?K=F6teles_K=E1roly?= Organization: =?ISO-8859-1?Q?Albert_Szent-Gy=F6rgyi_Medical_Univ.?= To: Kevin , djgpp AT delorie DOT com Date: Sun, 17 Oct 1999 16:59:59 MET MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: What's wrong with this code snippet ? X-Confirm-Reading-To: =?ISO-8859-1?Q?K=F6teles_K=E1roly?= X-pmrqc: 1 X-mailer: Pegasus Mail v3.31 Message-ID: <183ACD77747@phys.szote.u-szeged.hu> Reply-To: djgpp AT delorie DOT com On 17 Oct 99 at 12:12, Kevin wrote: > Subject: What's wrong with this code snippet ? > this doesn't set any of the kill list elements to 999, > when I look at them, they appear to have been set to > some unfeasably large negative number. if that "unfeasably large negative number" is -404232217, than the reason may be the memset function being "byte-based", ie. setting num bytes (~unsigned chars) in buffer to ch & 0xff. void *memset(void *buffer, int ch, size_t num); yours, K. ================================================================ Koteles, Karoly Albert Szent-Gyorgyi Medical University Dept. of Physiology Szeged, HUNGARY koteles AT phys DOT szote DOT u-szeged DOT hu