AUTALLOCHEAP(3)
β¨ NAME β¨
okay so bestie, meet autallocheap β it's a heap memory allocator π«Ά and it lives in the AUT FUNCTIONS part of the manual, which is the (3) in AUTALLOCHEAP(3) π
that's the whole vibe.
π ORIGIN π
This software belongs to the ALLIANCE CAD SYSTEM, developed by the ASIM team at LIP6 laboratory of UniversitΓ© Pierre et Marie CURIE, in Paris, France. π«π·β¨
- Web :
http://asim.lip6.fr/recherche/alliance/ - E-mail :
alliance-users@asim.lip6.fr
π SYNOPSIS π
#include "aut101.h"
char *autallocheap( Size )
unsigned int Size;
π§ PARAMETERS π§
Sizeβ the number of memory bytes you want allocated contiguously, like one big uninterrupted lil chunk π
π DESCRIPTION π
autallocheap returns a block of Size bytes length, allocated on the heap. πΈ
And the block? set to zero. Clean slate energy, no cap π§Όβ¨
Also, its use is strongly encouraged when the Size is very small β so like, tiny allocations? this is your girl ππ
π₯ RETURN VALUE π₯
autallocheap returns a pointer to a Size bytes long block. that's it, that's the return, iconic behavior π
π ERRORS π
"autalloc: alloc error, can't continue !"β this one means the system break can't be moved anymore, and no more memory can be retrieved from the system. like, the well is dry, there's nothing left to give π it's giving end of the road.
π EXAMPLE π
#include "aut101.h"
typedef struct bipointer
{
struct bipointer βNEXT;
void βDATA;
} bipointer;
bipointer βaddbipointer( Data );
void βData;
{
bipointer βBp = (bipointer β)autallocheap( sizeof( bipointer ) );
Bp->DATA = Data; return Bp;
}
π SEE ALSO π
aut(1), autresizeblock(3), autallocblock(3), autfreeblock(3), autfreeheap(3).
go read those too bestie, the whole friend group ate π«Άπ
π BUG REPORT π
This tool is under development at the ASIM department of the LIP6 laboratory. π οΈ
We need your feedback to improve documentation and tools. fr fr, they're literally asking β send the feedback, bestie π¬π
and that's a wrap on AUTALLOCHEAP(3), brought to you by ASIM/LIP6 and dated October 1, 1997 β yes she's an elder icon and she still serves π
π
π¦ where this page comes from
- fedora 43: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 43: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 44: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 44: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms