cvs.gedasymbols.org/archives/browse.cgi | search |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
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: | <Pine.SUN.3.91.991017160005.25856D-100000@is> |
References: | <c6wJONRNMABaX1eVyyz+aTSlhqUz AT 4ax DOT com> |
NNTP-Posting-Host: | is.elta.co.il |
Mime-Version: | 1.0 |
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: | <c6wJONRNMABaX1eVyyz+aTSlhqUz@4ax.com> |
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 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |