lbregisterarray(3)

NAME

lbRegisterArray - Registers memory in an array for leakbug
to keep track of.

SYNOPSIS

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

PARAMETERS

ptr The array pointer to register.

dataSize
The size of the data.
numElements
The number of elements in the array.
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_ARRAY(ptr, dataSize, numElements)
lbRegisterArray((ptr), (dataSize), (numElements), __FILE__,
__LINE__, LEAKBUG_DEBUG_LEVEL)
#else
#define LB_REGISTER_ARRAY(ptr, dataSize, numElements)
#endif

RETURNS

The array pointer passed.

SEE ALSO

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