lbCalloc3
Allocates and clears an array.
Usage
#include <leakbug.h>
void *lbCalloc(size_t nmemb, size_t size, const char *filename, int line, int debug_level);
Parameters
|
The number of elements to allocate. |
|---|---|
|
The size of each element. |
|
The calling filename. |
|
The calling line number. |
|
The debug level. |
Overview
Allocates and clears an array. This wraps calloc(), and a new calloc() macro is created to wrap this. When using leakbug, you shouldn't call this directly. Instead, use calloc() as usual.
Returns
A pointer to the first element in the new chunk of memory.
Releases
3 releases since Debian 3.0 (Woody); the text changed 1 time.