File: leaks.h

package info (click to toggle)
ntop 3:3.3-11
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 12,772 kB
  • ctags: 7,534
  • sloc: ansic: 71,427; sh: 16,772; awk: 1,504; perl: 792; makefile: 782; php: 123; python: 23; sql: 13; sed: 11
file content (23 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <string.h>
#include <stdlib.h>

#ifndef _LEAKS_H_
#define _LEAKS_H_

extern void initLeaks(void);
extern void termLeaks(void);

extern void* myMalloc(size_t, int, char*);
extern void* myCalloc(size_t, size_t, int, char*);
extern void* myRealloc(void*, size_t, int, char*);
extern void  myFree(void*, int, char*);
extern char* myStrdup(char*, int, char*);
extern void  myRemoveXMPLeak(void*, int, char*);
extern void  myAddXMPLeak(void*, int, char*);

extern unsigned int PrintMemoryBlocks(void);
extern void ResetLeaks(void);

#endif