malloc.c

ds2.1.1/lib/cmds/creators/malloc.c · 355 B

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

#include <lib.h>

inherit LIB_DAEMON;

int
cmd(string arg)
{
    malloc_status();
    return 1;
}

int help()
{
    write( @EndText
Syntax: malloc
Effect: Lists memory usage statistics
        Output will depend on memory management package specified in options.h
        when the driver is compiled.
See man: malloc_status
EndText
    );
    return 1;
}

Site Stats

Snippets: 1791
Codebases: 571