diff --git a/docs/functions/core/memory/why2_strdup.md b/docs/functions/core/memory/why2_strdup.md new file mode 100644 index 0000000..d5043dd --- /dev/null +++ b/docs/functions/core/memory/why2_strdup.md @@ -0,0 +1,37 @@ + + +# why2_strdup + +## Parameters + +| Identifier | Data type | +| ---------- | --------- | +| `string` | `char *` | + +## Attributes + +| | | +| ------------------ | ---------------------------------------------- | +| **Return type** | `void *` | +| **Header comment** | *This functions doesn't have any description.* | +| **Added in commit** | [`d5ae68c621b61823dc18cf7fe2d93dfb036cbbc1`](https://github.com/ENGO150/WHY2/commit/d5ae68c621b61823dc18cf7fe2d93dfb036cbbc1) | + +## Description + +Function passes `string` into [`strdup`](https://linux.die.net/man/3/strdup) 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 5b1fa5d..23a7f95 100644 --- a/docs/functions/index.md +++ b/docs/functions/index.md @@ -93,6 +93,7 @@ You can find documentation for every *public* function of WHY2 below. | [`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.* | ## Logger