projects
/
cgds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now using 2 spaces instead of tabs. Fix copyright years. Improve documentation
[cgds.git]
/
src
/
safe_alloc.h
diff --git
a/src/safe_alloc.h
b/src/safe_alloc.h
index
6771cc8
..
aab739d
100644
(file)
--- 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(
* @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(
* @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(
* @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(
);
/**
* @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
);
#endif