aboutsummaryrefslogtreecommitdiff
path: root/include/08.heap/heap20.c
diff options
context:
space:
mode:
Diffstat (limited to 'include/08.heap/heap20.c')
-rw-r--r--include/08.heap/heap20.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/08.heap/heap20.c b/include/08.heap/heap20.c
new file mode 100644
index 0000000..98c1157
--- /dev/null
+++ b/include/08.heap/heap20.c
@@ -0,0 +1,2 @@
+ return (void*)(x * b->bsize + (uintptr_t)&b[1]);
+ }