|
NAMEmbkalloc - mbk memory allocator See the file man1/alc_origin.1. SYNOPSIS#include "mut.h" char ∗mbkalloc(bytes) unsigned int bytes; PARAMETER
DESCRIPTIONmbkalloc returns a block of bytes length, for any purpose. It is now a day just an encapsulation of the system malloc function, but may evolve to a special allocator in the future. Its use is strongly encouraged.
RETURN VALUEmbkalloc returns a pointer to a bytes long block. ERROR"∗∗∗ mbk error ∗∗∗ mbkalloc impossible : not enough memory" System break can't be moved anymore, no more memory can
be retrieved from the system.
EXAMPLE
#include "mut.h"
char ∗dup_str(s);
{
char ∗t = (char ∗)mbkalloc(strlen(s) + (unsigned int)1);
strcpy(t, s);
return t;
}
SEE ALSOmbk(1), mbkfree(3). See the file man1/alc_bug_report.1.
|