_debugmalloc.c

tmi2_fluffos_v2/lib/cmds/adm/_debugmalloc.c · 285 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

#include <mudlib.h>

inherit DAEMON;

int cmd_debugmalloc(string str) {
  int i;

#ifdef HAS_DEBUGMALLOC
  if (!str || !sscanf(str, "%d", i)) i = 0;
  debugmalloc("/MALLOC_DUMP", i);
#else
  write("Sorry, this driver has not been compiled with DEBUGMALLOC.\n");
#endif

  return 1;
}

Site Stats

Snippets: 1791
Codebases: 571