delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/20/21:00:39

From: "Hammy" <darren AT grayce DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: memset func
Date: Thu, 21 Oct 1999 01:51:08 +0100
Organization: Customer of Planet Online
Lines: 25
Message-ID: <7ulo1q$5jf$1@news4.svr.pol.co.uk>
References: <Pine DOT UW2 DOT 3 DOT 95 DOT 991020220808 DOT 12680B-100000 AT bryggen DOT bgnett DOT no>
NNTP-Posting-Host: modem-105.trazodone.dialup.pol.co.uk
X-Trace: news4.svr.pol.co.uk 940467066 5743 62.136.89.233 (21 Oct 1999 00:51:06 GMT)
NNTP-Posting-Date: 21 Oct 1999 00:51:06 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Gisle Vanem <giva AT bryggen DOT bgnett DOT no> wrote in message
news:Pine DOT UW2 DOT 3 DOT 95 DOT 991020220808 DOT 12680B-100000 AT bryggen DOT bgnett DOT no...
> 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.
>

im sure you dont use a & for the address of a pointer?
anyway, videbuffer is a char * set to the address of the videoram by the vbe
stuff



- Raw text -


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