AUTRESIZEBLOCK(3)
β¨ AUTRESIZEBLOCK(3) β¨ β it's an AUT FUNCTIONS girlie, and she resizes memory blocks π
okay bestie, sit down, hydrate, because we're about to talk about autresizeblock β and no, it's not the name of a new dance, it's a memory block glow-up. π¦
πΈ NAME πΈ
autresizeblock β resizes a memory block. that's it. that's the whole job. iconic, honestly. π
π 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. π«π· oui oui, trΓ¨s slay.
- Web :
http://asim.lip6.fr/recherche/alliance/ - E-mail :
alliance-users@asim.lip6.fr
β¨ SYNOPSIS β¨
#include "aut101.h"
char βautresize( Source, OldSize, NewSize )
char βSource;
unsigned int OldSize;
unsigned int NewSize;
like, look at her. so retro. so C. π
π«Ά PARAMETERS π«Ά
Sourceβ pointer to the memory block that's about to be resized. she's the main character here.OldSizeβ the old size of the memory block. the before. the pre-glow-up era.NewSizeβ the new size of the memory block. the after. the transformation. β¨
π DESCRIPTION π
okay so here's the tea β: autresizeblock resizes a memory block from OldSize to NewSize. and the way that it's lowkey generous β if NewSize is greater than OldSize, then the new bytes are set to zero. no random leftover garbage bytes, no mystery data haunting your buffer. she zeroes it. she's clean. she's thoughtful. we love her. π
π RETURN VALUE π
autresizeblock returns the pointer to the resized block. so like, catch it, don't drop it. π«΄
π ERRORS π
if you see this, bestie, it's over:
"autresize: resize error, can't continue !"
what happened? the system break can't be moved anymore, which means no more memory can be retrieved from the system. she tried. the system said no. periodt. π
π§ EXAMPLE π§
here's the moment you've all been waiting for β actual code, and it's a whole concatstring:
#include "aut101.h"
char βconcatstring( t, s )
char β t;
char β s;
{
t = (char β)autresizeblock( t, strlen(t)+1, strlen(t)+strlen(s)+1);
strcat(t, s);
return t;
}
not her resizing, then strcatting, then handing it back like a gift. ate. π₯
π SEE ALSO π
go read these next, they're the friend group:
π BUG REPORT π
this tool is under development at the ASIM department of the LIP6 laboratory. and they need your feedback to improve documentation and tools. so like, if something's weird, tell them! it's giving community. it's giving collaboration. iykyk. π
ASIM/LIP6 β October 1, 1997 β and that's the AUTRESIZEBLOCK(3) page, bestie. go resize something responsibly. mwah. ππ
π¦ 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