AUTRESIZEBLOCK(3)

πŸ“¦ version 5.1.1-unstable-2025-02, in nixos 26.05, nixpkgs unstable

πŸ’… AUTRESIZEBLOCK(3) πŸ’…

bestie, this one comes from the AUT FUNCTIONS manual β€” folded in right here so you know exactly where it lives. 🫢

✨ NAME ✨

autresizeblock β€” resizes a memory block

🌈 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. πŸŽ€

πŸŽ€ SYNOPSIS πŸŽ€

       #include "aut101.h"
         char βˆ—autresize( Source, OldSize, NewSize )
          char         βˆ—Source;
          unsigned int OldSize;
          unsigned int NewSize;

No cap, the synopsis literally says autresize there β€” I’m just reading the page, bestie πŸ˜­πŸ’…

πŸ¦‹ PARAMETERS πŸ¦‹

  • Source β€” pointer to the memory block to be resized. 🫢
  • OldSize β€” old size of the memory block.
  • NewSize β€” new size of the memory block.

🌸 DESCRIPTION 🌸

autresizeblock resizes a memory block from OldSize to NewSize. If NewSize is greater than OldSize, then the new bytes are set to zero. ✨

⭐ RETURN VALUE ⭐

autresizeblock returns the pointer to the resized block. periodt πŸ‘‘

πŸ’€ ERRORS πŸ’€

  • "autresize: resize error, can't continue !" β€” system break can't be moved anymore, no more memory can be retrieved from the system. yeah, that’s the dramatic one 😭

🧚 EXAMPLE 🧚

       #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;
            }

πŸ”₯ SEE ALSO πŸ”₯

πŸ’œ BUG REPORT πŸ’œ

This tool is under development at the ASIM department of the LIP6 laboratory.

We need your feedback to improve documentation and tools. 🫢


πŸ’Œ cute little sign-off, bestie: the source/version on this page is ASIM/LIP6, and the date is October 1, 1997. mwah πŸ’‹βœ¨
πŸ“¦ where this page comes from