⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 leakmem.c

📁 一个C语言写的快速贝叶斯垃圾邮件过滤工具
💻 C
字号:
/** * \file leakmem.c * deliberately leaks memory, to test memory checkers. * \author Matthias Andree * \date 2005 * * GNU General Public License v2 */#include <stdlib.h>#include <stdio.h>int main(void) {    char *x;    x = malloc(42);    printf("got %p\n", x);    /* deliberately leak memory here */    x = malloc(42);    printf("got %p\n", x);    free(x);    return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -