From 11521b99661f969ba7adad9d2366108a1a001ab0 Mon Sep 17 00:00:00 2001 From: "Douglas B. Rumbaugh" Date: Sun, 2 Nov 2025 18:29:20 -0500 Subject: Defined allocator behavior for 0 byte requests --- include/alloc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/alloc.h') 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); -- cgit v1.2.3