From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: What's wrong with this code snippet ? Date: Sun, 17 Oct 1999 16:02:47 +0200 Organization: NetVision Israel Lines: 13 Message-ID: References: NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 940168888 25336 199.203.121.2 (17 Oct 1999 14:01:28 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 17 Oct 1999 14:01:28 GMT X-Sender: eliz AT is In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 17 Oct 1999, Kevin wrote: > // Set each element of the kill list to 999 > void empty_kill_list(int *list) > { > memset(list, 999, sizeof(int) * NUM_TILES); > } > > this doesn't set any of the kill list elements to 999, The second argument of memset is interpreted as an unsigned char, so it cannot be more than 255.