diff --git a/docs/functions/core/memory/why2_calloc.md b/docs/functions/core/memory/why2_calloc.md new file mode 100644 index 0000000..dc63942 --- /dev/null +++ b/docs/functions/core/memory/why2_calloc.md @@ -0,0 +1,38 @@ + + +# why2_calloc + +## Parameters + +| Identifier | Data type | +| ---------- | --------------- | +| `element` | `unsigned long` | +| `size` | `unsigned long` | + +## 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 `element` and `size` into [`calloc`](https://linux.die.net/man/3/calloc) function and returns the output value. The value is also pushed to [`linked-list`](../../../../types/core/llist/why2_list_t) for garbage collector. \ No newline at end of file diff --git a/docs/functions/index.md b/docs/functions/index.md index 8640261..87ce088 100644 --- a/docs/functions/index.md +++ b/docs/functions/index.md @@ -90,6 +90,7 @@ You can find documentation for every *public* function of WHY2 below. | 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.* | ## Logger