From 3d2b1b82bd1bf016d6fc5091bcec5c61bacabd70 Mon Sep 17 00:00:00 2001 From: "Douglas B. Rumbaugh" Date: Sun, 2 Nov 2025 15:51:24 -0500 Subject: Added an interface to access free list and updated tests to use it --- include/alloc.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/alloc.h') diff --git a/include/alloc.h b/include/alloc.h index cdbdb37..82a4b7b 100644 --- a/include/alloc.h +++ b/include/alloc.h @@ -35,4 +35,11 @@ void *allocate(size_t); */ void release(void *); +/* + * Return a pointer to the head of the free list. I can't recall + * precisely what I wanted this function called in the assignment, + * so this name may change when I get the chance to check. + */ +free_nd *free_list_head(); + #endif -- cgit v1.2.3