AUTFREEHEAP(3)
β¨ AUTFREEHEAP β¨
okay so bestie, welcome to the AUT FUNCTIONS corner of the manual β this one's autfreeheap(3), and it's literally the lil cleanup queen of the aut family π
π NAME π
autfreeheap β releases a memory block, and put it on the heap.
(yeah the grammar is giving "written in 1997" but we love her anyway π«Ά)
πΈ 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"
void autfreeheap( Pointer, Size )
char βPointer;
unsigned int Size;
π PARAMETERS π
Pointerβ Pointer to be given back to the heap. yes bestie, we're returning her to the wild πSizeβ Size of the block previously allocated byautallocheap.
π DESCRIPTION π
autfreeheap frees a pointer and puts the block back to the heap. no cap, that's the whole job.
Its use is necessary to free memory blocks, previously allocated by autallocheap. so if you allocated with autallocheap, you free with autfreeheap β they're a matched set, like besties fr fr π―ββοΈ
β RETURN VALUE β
autfreeheap returns nothing. literally nothing. silence. the void. π it does the thing and dips.
π§ 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;
}
void delbipointer( Bp );
bipointer βBp;
{
autfreeheap( Pointer, sizeof( bipointer ) );
}
look at that lil struct doing its main character thing, allocating with autallocheap and then handing it back with autfreeheap π
π₯ SEE ALSO π₯
aut(1), autresizeblock(3), autallocheap(3), autallocblock(3), autfreeblock(3).
iykyk β go read the whole squad π«Ά
π BUG REPORT π
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools. so like, tell them if something's weird, they're genuinely asking π
lowkey a whole vibe that this page has been out here since October 1, 1997 and we're still hyping it up. periodt.
ASIM/LIP6 Β· October 1, 1997 Β· AUTFREEHEAP(3) β slay, bye bestie π
β¨π
π¦ 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