aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2025-11-02 18:29:20 -0500
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2025-11-02 18:29:20 -0500
commit11521b99661f969ba7adad9d2366108a1a001ab0 (patch)
tree5a8d1225cfd9a4b58a5277d6d7f1f5112a7cf020 /include
parentf88198cb987ab006f3406698fec410ff1de05534 (diff)
downloadliballoc-11521b99661f969ba7adad9d2366108a1a001ab0.tar.gz
Defined allocator behavior for 0 byte requests
Diffstat (limited to 'include')
-rw-r--r--include/alloc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/alloc.h b/include/alloc.h
index 6374b3a..594ef67 100644
--- a/include/alloc.h
+++ b/include/alloc.h
@@ -21,7 +21,8 @@
/*
* Returns a pointer to a new region of memory of the specified
- * size, or NULL if no memory is available.
+ * size, or NULL if no memory is available. Requests for 0 bytes of
+ * memory will also return NULL.
*/
void *allocate(size_t);