🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari16
Article #1879

malloc and sbrk

#1879
From: Gordon Powell
Date: Thu, 18 Sep 1986 18:56
5 lines
854 bytes
If you are having problems with the DRI malloc, first call sbrk at the
beginning of your program.  Call it with an argument equal to the total
number of bytes you anticipate needing.  It allocates space to the heap
where the dynamic memory management is done.  See also brk.  Both
are documented under brk in the DRI C manual.
Technical Details
Message-ID: <8609181856.AA03018@mitre.ARPA>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!MITRE.ARPA!gpowell

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!MITRE.ARPA!gpowell
From: gpowell@MITRE.ARPA (Gordon Powell)
Newsgroups: net.micro.atari16
Subject: malloc and sbrk
Message-ID: <8609181856.AA03018@mitre.ARPA>
Date: Thu, 18-Sep-86 14:56:33 EDT
Article-I.D.: mitre.8609181856.AA03018
Posted: Thu Sep 18 14:56:33 1986
Date-Received: Sat, 20-Sep-86 03:50:21 EDT
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The MITRE Corp., Washington, D.C.
Lines: 5