.\" This manpage is Copyright (C) 2016 MongoDB, Inc. .\" .\" Permission is granted to copy, distribute and/or modify this document .\" under the terms of the GNU Free Documentation License, Version 1.3 .\" or any later version published by the Free Software Foundation; .\" with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. .\" A copy of the license is included in the section entitled "GNU .\" Free Documentation License". .\" .TH "BSON_REALLOC" "3" "2016\(hy10\(hy12" "libbson" .SH NAME bson_realloc() \- This is a portable realloc() wrapper. .SH "SYNOPSIS" .nf .nf void * bson_realloc (void *mem, size_t num_bytes); .fi .fi .SH "PARAMETERS" .TP .B .B mem A memory region. .LP .TP .B .B num_bytes A size_t containing the new requested size. .LP .SH "DESCRIPTION" This is a portable .B realloc(3) wrapper. In general, this function will return an allocation at least .B sizeof(void*) bytes or bigger. If .B num_bytes is 0, then the allocation will be freed. If there was a failure to allocate .B num_bytes bytes, the process will be aborted. .B NOTE .RS This function will abort on failure to allocate memory. .RE .SH "RETURNS" A pointer to a memory region which .B HAS NOT been zeroed. .B .SH COLOPHON This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.