From ba54f62f4d1e037452134841fa543fa7b07d863e Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 25 Jan 2025 21:13:14 +0100 Subject: [PATCH] created doc for why2_deallocate --- docs/functions/core/memory/why2_deallocate.md | 37 +++++++++++++++++++ docs/functions/index.md | 21 ++++++----- 2 files changed, 48 insertions(+), 10 deletions(-) create mode 100644 docs/functions/core/memory/why2_deallocate.md diff --git a/docs/functions/core/memory/why2_deallocate.md b/docs/functions/core/memory/why2_deallocate.md new file mode 100644 index 0000000..438785c --- /dev/null +++ b/docs/functions/core/memory/why2_deallocate.md @@ -0,0 +1,37 @@ + + +# why2_deallocate + +## Parameters + +| Identifier | Data type | +| ---------- | --------- | +| `pointer` | `void *` | + +## Attributes + +| | | +| ------------------ | ---------------------------------------------- | +| **Return type** | `void` | +| **Header comment** | *This functions doesn't have any description.* | +| **Added in commit** | [`3491d89a86eba805c3f42543a431cae33bae146b`](https://github.com/ENGO150/WHY2/commit/3491d89a86eba805c3f42543a431cae33bae146b) | + +## Description + +Function passes `pointer` into corresponding deallocation function ([`free`](https://linux.die.net/man/3/free), [`fclose`](https://linux.die.net/man/3/fclose) or [`closedir`](https://linux.die.net/man/3/closedir)). The value is also removed from [`linked-list`](../../../../types/core/llist/why2_list_t). \ No newline at end of file diff --git a/docs/functions/index.md b/docs/functions/index.md index 422ab33..88c3696 100644 --- a/docs/functions/index.md +++ b/docs/functions/index.md @@ -87,16 +87,17 @@ You can find documentation for every *public* function of WHY2 below. ### Memory -| Function | Description | -| ---------------------------------------------- | ---------------------------------------------------------- | -| [`why2_malloc`](./core/memory/why2_malloc) | *This functions doesn't have any description.* | -| [`why2_calloc`](./core/memory/why2_calloc) | *This functions doesn't have any description.* | -| [`why2_realloc`](./core/memory/why2_realloc) | This doesn't preserve content of pointer! | -| [`why2_recalloc`](./core/memory/why2_recalloc) | Same as why2_realloc but fills the pointer with null-terms | -| [`why2_strdup`](./core/memory/why2_strdup) | *This functions doesn't have any description.* | -| [`why2_fopen`](./core/memory/why2_fopen) | *This functions doesn't have any description.* | -| [`why2_fdopen`](./core/memory/why2_fdopen) | *This functions doesn't have any description.* | -| [`why2_opendir`](./core/memory/why2_opendir) | *This functions doesn't have any description.* | +| Function | Description | +| -------------------------------------------------- | ---------------------------------------------------------- | +| [`why2_malloc`](./core/memory/why2_malloc) | *This functions doesn't have any description.* | +| [`why2_calloc`](./core/memory/why2_calloc) | *This functions doesn't have any description.* | +| [`why2_realloc`](./core/memory/why2_realloc) | This doesn't preserve content of pointer! | +| [`why2_recalloc`](./core/memory/why2_recalloc) | Same as why2_realloc but fills the pointer with null-terms | +| [`why2_strdup`](./core/memory/why2_strdup) | *This functions doesn't have any description.* | +| [`why2_fopen`](./core/memory/why2_fopen) | *This functions doesn't have any description.* | +| [`why2_fdopen`](./core/memory/why2_fdopen) | *This functions doesn't have any description.* | +| [`why2_opendir`](./core/memory/why2_opendir) | *This functions doesn't have any description.* | +| [`why2_deallocate`](./core/memory/why2_deallocate) | *This functions doesn't have any description.* | ## Logger