DOKK / manpages / debian 10 / alliance / autresizeblock.3.en
AUTRESIZEBLOCK(3) AUT FUNCTIONS AUTRESIZEBLOCK(3)

autresizeblock - resizes a memory block

See the file buster/alliance/alc_origin.1.en.gz.

#include "aut101.h"

char ∗autresize( Source, OldSize, NewSize )
char ∗Source;
unsigned int OldSize;
unsigned int NewSize;

Pointer to the memory block to be resized.
Old size of the memory block.
New size of the memory block.

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

autresizeblock returns the pointer to the resized block.

"autresize: resize error, can't continue !"

System break can't be moved anymore, no more memory can be retrieved from the system.

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

aut(1), autallocheap(3), autallocblock(3), autfreeblock(3), autfreeheap(3).

See the file buster/alliance/alc_bug_report.1.en.gz.

October 1, 1997 ASIM/LIP6