/
niceSOFT
/
valgrind
Обзор
Документация
Войти
/
niceSOFT
/
valgrind
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
memcheck/tests/wrapmallocso.c
17 строк
310 B
Mark Wielaard
BZ#355188 valgrind should intercept all malloc related global functions.
15 ноя 2015, 19:50
15 ноя 2015, 19:50
8b4dd5c
Код
Авторство
О чём код?
#include <stdio.h> #include <stdlib.h> /* Fake malloc/free functions that just print something. When run under memcheck these functions will be intercepted and not print anything. */ void *malloc ( size_t size ) { printf ("malloc\n"); return NULL; } void free (void *ptr) { printf ("free\n"); }