🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #5833

Dynamic Memory Allocation

#5833
From: Phil Dietz
Date: Sun, 14 Oct 1990 06:38
19 lines
1189 bytes
I'm writting a suped up directory program in Lattice 5.04 'C'.  
 
I'm having a problem with the stack.  When I used arrays, I had to set
the stack high enough for it to run (I understand why.)  So I decided to
use CALLOC to create the memory I need so the user can leave the stack
at 4k.
 
When I run it under CALLOC, I STILL have to set the stack.  Why?  Isn't
it dynamic therefor it uses heap space instead?  
 
Is CALLOC a dynamic memory accessor or do I have to go to rbrk whatever
that is???
 
Phil Dietz


<<<=================--------- Cheap Ad ---------===================<<<
Phil Dietz                       SWL Lincoln    550 MEGS! 2 lines
252u3130@fergvax.unl.edu         (402)421-1963  IBM, GIFS, MAC, AMIGA
Technical Details
Message-ID: <1990Oct14.063834.1563@hoss.unl.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!maverick.ksu.ksu.edu!hoss!fergvax!252u3130
References: <14721@netcom.UUCP> <CEDMAN.90Oct13225759@lynx.ps.uci.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!maverick.ksu.ksu.edu!hoss!fergvax!252u3130
From: 252u3130@fergvax.unl.edu (Phil Dietz)
Newsgroups: comp.sys.amiga.tech
Subject: Dynamic Memory Allocation
Message-ID: <1990Oct14.063834.1563@hoss.unl.edu>
Date: 14 Oct 90 06:38:34 GMT
References: <14721@netcom.UUCP> <CEDMAN.90Oct13225759@lynx.ps.uci.edu>
Sender: news@hoss.unl.edu (Network News Administer)
Organization: Comp Sci and Engr, Univ. of Nebr.
Lines: 19