Path: 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> Sender: news@hoss.unl.edu (Network News Administer) Organization: Comp Sci and Engr, Univ. of Nebr. Lines: 19 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