AUTALLOCHEAP(3)
okay bestie, buckle up π
you're reading the autallocheap(3) page β it lives in the AUT FUNCTIONS section of the manual, and it's honestly kind of a little legend. let's get into it π«Ά
πΈ NAME πΈ
autallocheap β heap memory allocator
β¨ ORIGIN β¨
so this software belongs to the ALLIANCE CAD SYSTEM, which was developed by the ASIM team at the LIP6 laboratory of UniversitΓ© Pierre et Marie CURIE, in Paris, France. Paris!! the math girlies ate π«π·π₯
- 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, i.e. all in one cute little row next to each other π
π DESCRIPTION π
autallocheap returns a block of Size bytes in length, allocated on the heap. and here's the slay part: the memory block is set to zero β¨ no mysterious garbage, no cursed leftovers, just clean zeros.
its use is strongly encouraged when the Size is very small β like, tiny-Size is literally its whole moment, its main character era π
π RETURN VALUE π
autallocheap returns a pointer to a Size bytes long block. that's it, that's the return π«Ά
π ERRORS π
"autalloc: alloc error, can't continue !"β this happens when the system break can't be moved anymore, so no more memory can be retrieved from the system. ngl that's a whole mood killer π
π 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).
iykyk, go read the whole family π
π 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, your feedback matters, don't leave them on read π
mwah that's the page, bestie β this one came from ASIM/LIP6 and it's dated October 1, 1997, so it's giving vintage icon energy πΈβ¨
π¦ 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