SYNOPSIS

#include <bson.h>

void *
bson_realloc (void  *mem,
              size_t num_bytes);

DESCRIPTION

The bson_realloc() function shall act just like the system realloc except that abort() is called if there was a failure to realloc.

Note that a call to bson_realloc() with num_bytes of 0 will free mem as expected by system realloc.

RETURN VALUE

A potential new allocation or the existing if it could be reused. NULL is returned if num_bytes is zero.

SEE ALSO

AUTHORS

This page was written by MongoDB, Inc.