| 324 * @note Re-allocating a block allocated by a different allocator is undefined. |
324 * @note Re-allocating a block allocated by a different allocator is undefined. |
| 325 * |
325 * |
| 326 * @par Error handling |
326 * @par Error handling |
| 327 * @c errno will be set, if the underlying realloc function does so. |
327 * @c errno will be set, if the underlying realloc function does so. |
| 328 * |
328 * |
| 329 * @param allocator (@c const @c CxAllocator*) the allocator |
329 * @param allocator (@c CxAllocator*) the allocator |
| 330 * @param mem (@c void**) pointer to the pointer to allocated block |
330 * @param mem (@c void**) pointer to the pointer to allocated block |
| 331 * @param n (@c size_t) the new size in bytes |
331 * @param n (@c size_t) the new size in bytes |
| 332 * @retval zero success |
332 * @retval zero success |
| 333 * @retval non-zero failure |
333 * @retval non-zero failure |
| 334 */ |
334 */ |
| 373 * |
373 * |
| 374 * @par Error handling |
374 * @par Error handling |
| 375 * @c errno will be set, if the underlying realloc function does so or the |
375 * @c errno will be set, if the underlying realloc function does so or the |
| 376 * multiplication of @p nmemb and @p size overflows. |
376 * multiplication of @p nmemb and @p size overflows. |
| 377 * |
377 * |
| 378 * @param allocator (@c const @c CxAllocator*) the allocator |
378 * @param allocator (@c CxAllocator*) the allocator |
| 379 * @param mem (@c void**) pointer to the pointer to allocated block |
379 * @param mem (@c void**) pointer to the pointer to allocated block |
| 380 * @param nmemb (@c size_t) the number of elements |
380 * @param nmemb (@c size_t) the number of elements |
| 381 * @param size (@c size_t) the size of each element |
381 * @param size (@c size_t) the size of each element |
| 382 * @retval zero success |
382 * @retval zero success |
| 383 * @retval non-zero failure |
383 * @retval non-zero failure |