Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!rutgers!mcnc!ecsgate!ecsvax!uncw!session From: session@uncw.UUCP (Zack C. Sessions) Newsgroups: comp.lang.fortran Subject: Re: dynamic storage Message-ID: <1050@uncw.UUCP> Date: 6 Mar 91 17:11:20 GMT References: <38747@netnews.upenn.edu> Organization: Univ. of North Carolina at Wilmington Lines: 19 lmeyer@eniac.seas.upenn.edu (Basya Meyer) writes: >As a 'c' programmer who must work in fortran, I need your help! Is there >any way in fortran to create something (roughly approximating) a stack or >linked list? I would like to allocate spaces in memory as I go along. >Thanks, >Basya There is no true dynamic memory allocation possible with standard FORTRAN. As another follow-up poster has shown, implementation of stacks, linked lists (as well as queues, etc.) is nothing more than an exercise in Data Structures. What some do (if both a C AND a FORTRAN compiler is available) is use C subroutines to perform the dynamic allocation. Zack Sessions session@uncw.UUCP