profile.c
来自「Save you music Database in MySQL」· C语言 代码 · 共 34 行
C
34 行
#include "config.h"#include <stdio.h>#include <sys/stat.h>#include <utime.h>#include <dirent.h>#include <fcntl.h>#include <errno.h>#include <string.h>#include <includes.h>#include <vfs.h>static int xmallocs = 0;void *MALLOC(size_t size){ xmallocs++; return malloc(size);}void STRDUP() { xmallocs++; }void FREE(void *ptr){ xmallocs--; free(ptr);}void report_mem_usage(const char *tracking){ DEBUG(1, ("musicdb: mem_usage(%s): %d\n", tracking, xmallocs));}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?