From d23f6d3be400e7f51c3171d1dbd85da8b8d430ce Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 30 Apr 2026 11:12:22 +0300 Subject: feat(README): Add information about memory manager --- README | 4 ---- README.md | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) delete mode 100644 README create mode 100644 README.md diff --git a/README b/README deleted file mode 100644 index 48a1cc5..0000000 --- a/README +++ /dev/null @@ -1,4 +0,0 @@ -foollib -======= - -A collection of C99 utilities diff --git a/README.md b/README.md new file mode 100644 index 0000000..2cf0c13 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +foollib +======= + +A collection of C99 utilities and containers. + +Memory manager +-------------- + +The primary concept behind this repository is the `MemoryManager`. +It provides a generic allocation/deallocation interface, allowing you to use different allocators in different scenarios. + +The standard allocator (`M_std`) provides a trivial wrapper over `malloc` and `free`. +For convenience, `M_STD` is a global object, which contains the trivial wrappers. +In case you do not want any special memory management, you should pass `M_STD` when a `MemoryManager` is required. -- cgit v1.2.3