AUTFREEHEAP(3)
π autfreeheap(3) β AUT FUNCTIONS π
okay bestie, welcome to the autfreeheap page π this one lives in the AUT FUNCTIONS section of the manual, and it's literally the "give the memory back" bestie of autallocheap. short page, big job. let's get into it π«Ά
πΈ ORIGIN πΈ
this software belongs to the ALLIANCE CAD SYSTEM, developed by the ASIM team at the LIP6 laboratory of UniversitΓ© Pierre et Marie CURIE, in Paris, France π₯β¨ (yes, that Paris).
- 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β the pointer you're handing back to the heap π«΄ she's going home.Sizeβ the size of the block that was previously allocated byautallocheap. you gotta tell her how big she was, no cap.
π DESCRIPTION π
autfreeheap frees a pointer and puts the block back on the heap. that's the whole vibe β¨
and listen β using it is necessary to free memory blocks that were previously allocated by autallocheap π like, that's the matching pair, the duo, the main characters. autallocheap gives, autfreeheap takes back. periodt π
π RETURN VALUE π
autfreeheap returns nothing. literally nothing. void. empty. she gives you zero back and that's iconic π
π EXAMPLE π
okay here's the whole thing in action, bestie β a little bipointer struct and her alloc/free besties:
#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 ) );
}
π just copying it faithfully, bestie β that last line says exactly what it says, so don't come for me, I'm just the messenger π
π§ SEE ALSO π§
aut(1), autresizeblock(3), autallocheap(3), autallocblock(3), autfreeblock(3).
π 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, tell them what's broken, they want to know.
and that's the page, bestie! πΈ this one's from ASIM/LIP6, dated October 1, 1997 (yes she's an elder icon π), filed under AUTFREEHEAP(3). go forth and free your heap responsibly ππ
π¦ where this page comes from
- nixos 26.05: alliance 5.1.1-unstable-2025-02-24
- nixpkgs unstable: alliance 5.1.1-unstable-2025-02-24
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms