www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/08/07:09:17

Date: Sun, 8 Feb 1998 14:08:46 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Majisun <username AT infowest DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: HELP, PLEASE HELP... SIG INT
In-Reply-To: <01bd3434$3eb169c0$613d31cf@default>
Message-ID: <Pine.SUN.3.91.980208140821.6339Z-100000@is>
MIME-Version: 1.0

On 8 Feb 1998, Majisun wrote:

> Okay, the problem is like this: I have a pointer to the video buffer and a
> double buffer pointer.  I used calloc(0, 64000) to set the double
> buffer.                        ^^^^^^^^^^^^^^^^

This allocation doesn't allocate anything!  The first parameter needs
to be non-zero; the size in bytes of the actual allocated buffer is
the multiple of the two parameters, which in your case is zero.

- Raw text -


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