delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/20/18:09:54

Date: Wed, 20 Oct 1999 22:09:31 +0100 (MET)
From: Gisle Vanem <giva AT bryggen DOT bgnett DOT no>
To: djgpp AT delorie DOT com
Subject: Re: memset func
In-Reply-To: <7ukvlk$9u6$1@news5.svr.pol.co.uk>
Message-ID: <Pine.UW2.3.95.991020220808.12680B-100000@bryggen.bgnett.no>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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.

- Raw text -


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