X-Git-Url: https://git.auder.net/?p=cgds.git;a=blobdiff_plain;f=src%2Fsafe_alloc.h;fp=src%2Fsafe_alloc.h;h=aab739dd4dcf49686de3b94a1fafd73b65ebbe75;hp=6771cc89a63fc58b083b59b64745e62a878bc0fa;hb=e45132acdb58c076d5e06849fa51c26de9a7486d;hpb=1ff641f9960fa6c6081817a5641afb22fad91dcd diff --git a/src/safe_alloc.h b/src/safe_alloc.h index 6771cc8..aab739d 100644 --- a/src/safe_alloc.h +++ b/src/safe_alloc.h @@ -14,7 +14,7 @@ * @return A pointer to the newly allocated area; exit program if fail. */ void* safe_malloc( - size_t size ///< Size of the block to allocate, in bytes. + size_t size ///< Size of the block to allocate, in bytes. ); /** @@ -22,8 +22,8 @@ void* safe_malloc( * @return A pointer to the newly allocated area; exit program if fail. */ void* safe_calloc( - size_t count, ///< Number of elements to allocate. - size_t size ///< Size of the element to allocate, in bytes. + size_t count, ///< Number of elements to allocate. + size_t size ///< Size of the element to allocate, in bytes. ); /** @@ -31,15 +31,15 @@ void* safe_calloc( * @return A pointer to the newly allocated area; exit program if fail. */ void* safe_realloc( - void* ptr, ///< Pointer on the area to be relocated. - size_t size ///< Size of the block to reallocate, in bytes. + void* ptr, ///< Pointer on the area to be relocated. + size_t size ///< Size of the block to reallocate, in bytes. ); /** * @brief Wrapper around stdlib free function. */ void safe_free( - void* ptr ///< Pointer on the area to be destroyed. + void* ptr ///< Pointer on the area to be destroyed. ); #endif