@@ -1237,11 +1237,12 @@ #ifdef __cplusplus extern "C" { #endif /** - * @brief Allocates memory for the specified number of items. + * @brief Allocates memory for the specified number of items of the specified + * size. * * To free the allocated memory, use `free()`. * * Throws @ref OFOutOfMemoryException if allocating failed and * @ref OFOutOfRangeException if the requested size exceeds the address space. @@ -1249,16 +1250,16 @@ * @param count The number of items to allocate * @param size The size of each item to allocate * @return A pointer to the allocated memory. May return NULL if the specified * size or count is 0. */ -extern void *_Nullable of_malloc(size_t count, size_t size) +extern void *_Nullable of_alloc(size_t count, size_t size) OF_WARN_UNUSED_RESULT; /** - * @brief Allocates memory for the specified number of items and initializes it - * with zeros. + * @brief Allocates memory for the specified number of items of the specified + * size and initializes it with zeros. * * To free the allocated memory, use `free()`. * * Throws @ref OFOutOfMemoryException if allocating failed and * @ref OFOutOfRangeException if the requested size exceeds the address space. @@ -1266,15 +1267,15 @@ * @param size The size of each item to allocate * @param count The number of items to allocate * @return A pointer to the allocated memory. May return NULL if the specified * size or count is 0. */ -extern void *_Nullable of_calloc(size_t count, size_t size) +extern void *_Nullable of_alloc_zeroed(size_t count, size_t size) OF_WARN_UNUSED_RESULT; /** - * @brief Resizes memory to the specific number of items of the specified size. + * @brief Resizes memory to the specified number of items of the specified size. * * To free the allocated memory, use `free()`. * * If the pointer is NULL, this is equivalent to allocating memory. * If the size or number of items is 0, this is equivalent to freeing memory.