From 125782324fa3cd2ba634eaf22f110f262262b02c Mon Sep 17 00:00:00 2001 From: Kevin Yonan Date: Mon, 24 Jun 2019 19:53:05 -0700 Subject: [PATCH] Update mempool_README.md --- mempool_README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mempool_README.md b/mempool_README.md index 729c36170..49bdd84d1 100644 --- a/mempool_README.md +++ b/mempool_README.md @@ -1,4 +1,4 @@ -Raylib Memory Pool +lRaylib Memory Pool By Kevin 'Assyrianic' Yonan @ https://github.com/assyrianic About: @@ -66,7 +66,7 @@ Explanation & Usage: Alternatively, if you're not in a position to use any kind of dynamic allocation from the operating system, you have the option to utilize an existing buffer as memory for the mempool: ```c char mem[64000]; - struct MemPool pool = MemPool_FromBuffer(sizeof mem, &mem[0]); + struct MemPool pool = MemPool_FromBuffer(sizeof mem, mem); ``` To allocate from the pool, we have two functions: @@ -160,3 +160,4 @@ Explanation & Usage: ```c size_t MemPool_MemoryRemaining(const struct MemPool mempool); ``` +