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;
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 !"
#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 |