Mail Archives: djgpp/1999/10/17/13:16:19
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 -