lbCalloc(3)

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

nmemb

The number of elements to allocate.

size

The size of each element.

filename

The calling filename.

line

The calling line number.

debug_level

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.

  1. 3.0
  2. 3.1–4.0

From libleakbug-dev 0.1.5+debian-2 in Debian 4.0 (Etch). Parsed by carta from the page's man source.