lbRegisterArray   (3) manpage
lbRegisterArray
3
12 Jul 2001
leakbug
  • 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 handled by leakbug. This is useful when leakbug dumps "Freeing unknown 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
Current Users: 25 © 1999-2006 Linux.com.hk PenguinSoft
All trademarks and copyrights on this page are owned by their respective companies. Linux is a trademark of Linus Torvalds.