1:man_page: bson_malloc 2 3bson_malloc() 4============= 5 6Synopsis 7-------- 8 9.. code-block:: c 10 11 void * 12 bson_malloc (size_t num_bytes); 13 14Parameters 15---------- 16 17* ``num_bytes``: A size_t containing the number of bytes to allocate. 18 19Description 20----------- 21 22This is a portable ``malloc()`` wrapper. 23 24In general, this function will return an allocation at least ``sizeof(void*)`` bytes or bigger. 25 26If there was a failure to allocate ``num_bytes`` bytes, the process will be aborted. 27 28.. warning:: 29 30 This function will abort on failure to allocate memory. 31 32Returns 33------- 34 35A pointer to a memory region which *HAS NOT* been zeroed. 36 37