test9.c

来自「很好用的内存泄漏检测工具。要配合linux的gcc使用,安装后将你的编译器gcc」· C语言 代码 · 共 16 行

C
16
字号
#include <stdio.h>#include <stdlib.h>static void c (void) __attribute__((constructor));static void c (void){  char *p;  printf("Constructor test, should crash\n");  p = malloc(10);  p[11] = 0;}/* Unused; to fit into main.c */char msg[] = "";void test() {}

⌨️ 快捷键说明

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