POV-Ray : Newsgroups : povray.programming : Array pointers : Re: amalloc() (long post) Server Time
4 Oct 2024 17:00:12 EDT (-0400)
  Re: amalloc() (long post)  
From: Thorsten Froehlich
Date: 17 Jan 2003 15:32:59
Message: <3e28687b@news.povray.org>
In article <3e275cea$1@news.povray.org> , "Vadim Sytnikov" <syt### [at] rucom>
wrote:

> IMHO the absolutely best way is to use something like the amalloc()
> function; see below.

The code, or at least the comments in it are totally outdated.  Obviously it
is meant for DOS:

> /* +++Date last modified: 05-Jul-1997 */
>
> /*
>
> AMALLOC - multi-dimensional malloc()
>
> Allocates a multidimensional array dynamically, at runtime, so that
>   1: its elements can be accessed using multiple indirection
>   2: it can be deallocated using a call to the standard free() function
> Note: On PC's the max array size is 64K
>
> Paul Schlyter, 1992-02-09.  Released to the public domain.



____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.