lbregister(3)

NAME

lbRegister - Registers memory for leakbug to keep track
of.

SYNOPSIS

#include <leakbug.h>
void  *lbRegister(void  *ptr, unsigned int dataSize, const
char *filename, int line, int debug_level);

PARAMETERS

ptr The pointer to register.

dataSize
The size of the data.
filename
The calling filename.
line The calling line number.
debug_level
The debug level.

DESCRIPTION

This is used to register any memory not automatically han
dled by leakbug. This is useful when leakbug dumps "Freeing un
known memory" warnings in your program.

#ifdef WITH_LEAKBUG
#include <leakbug.h>
#define LB_REGISTER(ptr, dataSize)
lbRegister((ptr), (dataSize), __FILE__, __LINE__,

LEAKBUG_DEBUG_LEVEL)

#else
#define LB_REGISTER(ptr, dataSize)
#endif

RETURNS

The pointer passed.

SEE ALSO

lbRegisterArray(3)
leakbug 12 Jul 2001
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout