SYNOPSIS

#include <bson.h>

void *
bson_malloc0 (size_t num_bytes);

DESCRIPTION

The bson_malloc0() function shall act like the system calloc() except it will abort() upon failure to allocate memory.

RETURN VALUE

Always returns a valid allocation.

ERRORS

abort() is called upon failure to allocate memory.

SEE ALSO

AUTHORS

This page was written by MongoDB, Inc.