aboutsummaryrefslogtreecommitdiff
path: root/src/dstr/ft_dstrunwrap.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-04-04 21:28:21 +0200
committerCharles <sircharlesaze@gmail.com>2020-04-04 21:28:21 +0200
commit42316d8393d32bd88fb8e0cba6825185f78dacd0 (patch)
treee9adbd7e5701f70ecba520bbee41d4b21852a1cb /src/dstr/ft_dstrunwrap.c
parent51b845a6a202b50966f50e166cfb11bcbdccbe33 (diff)
downloadlibft-42316d8393d32bd88fb8e0cba6825185f78dacd0.tar.gz
libft-42316d8393d32bd88fb8e0cba6825185f78dacd0.tar.bz2
libft-42316d8393d32bd88fb8e0cba6825185f78dacd0.zip
Added test and doc for dynamic string
Diffstat (limited to 'src/dstr/ft_dstrunwrap.c')
-rw-r--r--src/dstr/ft_dstrunwrap.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dstr/ft_dstrunwrap.c b/src/dstr/ft_dstrunwrap.c
index ba62a23..5b29b5b 100644
--- a/src/dstr/ft_dstrunwrap.c
+++ b/src/dstr/ft_dstrunwrap.c
@@ -6,12 +6,18 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/03 13:59:35 by charles #+# #+# */
-/* Updated: 2020/04/03 14:00:36 by charles ### ########.fr */
+/* Updated: 2020/04/04 19:58:41 by charles ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft_dstr.h"
+/*
+** \brief Destroy dynamic string but keep the underlying static string
+** \param dstr Dynamic string to unwrap
+** \return Underlying string of the dynamic one
+*/
+
char *ft_dstrunwrap(t_ftdstr *dstr)
{
char *tmp;