debugmalloc(3) MudOS v21c2
(5 Sep 1994)
名称:
debugmalloc() - 将已配置的内存 (malloc'd memory) 信息倾印到一个文件里.
语法:
void debugmalloc( string filename, int mask );
无返回值 debugmalloc( 字符串 filename, 整数 mask );
用法:
这个外部函数 (efun) 必须在编译驱动程序 (driver) 时, 于 options.h
同时定义 DEBUGMALLOC 和 DEBUGMALLOC_EXTENSIONS 两者才有效. debugmalloc()
会倾印 DMALLOC() 配置的内存区块的信息及相关的 macros. (如果 macro 有
mask bitwise and'd (&) with the tag, 即 mask & tag 不是零) 详细情形请参阅驱动程序原始码中的
md.c 及 config.h
参考:
翻译:
Spock @ FF 97.Jul.23. (printed 3/16/95)
回到上一页