diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-04-04 21:28:21 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-04-04 21:28:21 +0200 |
| commit | 42316d8393d32bd88fb8e0cba6825185f78dacd0 (patch) | |
| tree | e9adbd7e5701f70ecba520bbee41d4b21852a1cb /src/dstr/ft_dstrnew.c | |
| parent | 51b845a6a202b50966f50e166cfb11bcbdccbe33 (diff) | |
| download | libft-42316d8393d32bd88fb8e0cba6825185f78dacd0.tar.gz libft-42316d8393d32bd88fb8e0cba6825185f78dacd0.tar.bz2 libft-42316d8393d32bd88fb8e0cba6825185f78dacd0.zip | |
Added test and doc for dynamic string
Diffstat (limited to 'src/dstr/ft_dstrnew.c')
| -rw-r--r-- | src/dstr/ft_dstrnew.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/dstr/ft_dstrnew.c b/src/dstr/ft_dstrnew.c index 189fc78..8ae4a64 100644 --- a/src/dstr/ft_dstrnew.c +++ b/src/dstr/ft_dstrnew.c @@ -6,12 +6,19 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/03 13:54:52 by charles #+# #+# */ -/* Updated: 2020/04/03 13:58:17 by charles ### ########.fr */ +/* Updated: 2020/04/04 19:50:38 by charles ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft_dstr.h" +/* +** \brief Create a new dynamic string +** \param from Static string to create the dynamic one from +** (will be duplicated) +** \return Created dynamic string or NULL on malloc error +*/ + t_ftdstr *ft_dstrnew(char *from) { t_ftdstr *dstr; |
