delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/17/13:16:19

From: =?ISO-8859-1?Q?K=F6teles_K=E1roly?= <KOTELES AT phys DOT szote DOT u-szeged DOT hu>
Organization: =?ISO-8859-1?Q?Albert_Szent-Gy=F6rgyi_Medical_Univ.?=
To: Kevin <krugman AT nospam DOT demon DOT co DOT uk>, djgpp AT delorie DOT com
Date: Sun, 17 Oct 1999 16:59:59 MET
MIME-Version: 1.0
Subject: Re: What's wrong with this code snippet ?
X-Confirm-Reading-To: =?ISO-8859-1?Q?K=F6teles_K=E1roly?= <KOTELES AT phys DOT szote DOT u-szeged DOT hu>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019