Date: Wed, 20 Oct 1999 22:09:31 +0100 (MET) From: Gisle Vanem To: djgpp AT delorie DOT com Subject: Re: memset func In-Reply-To: <7ukvlk$9u6$1@news5.svr.pol.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Wed, 20 Oct 1999, Hammy wrote: > okay, why does it crash when i do this: > > memset((char *)videobuffer[640*y+x],5,10); > > it gives some type of message like the casting pointer is larger than what > im casting it as???? Without knowing what 'videoBuffer' is i's hard to say. But maybe you meant to say "memset((char *)&videobuffer[640*y+x],5,10);" Gisle V.