aboutsummaryrefslogtreecommitdiff
path: root/src/dstr/ft_dstrdestroy.c
blob: 6f1a8190b389c2138faeb0eb04301ecbc67acfe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ft_dstrdestroy.c                                   :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: charles <charles.cabergs@gmail.com>        +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/04/03 13:58:46 by charles           #+#    #+#             */
/*   Updated: 2020/04/03 13:59:25 by charles          ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include "libft_dstr.h"

void		ft_dstrdestroy(t_ftdstr *dstr)
{
	if (dstr == NULL)
		return ;
	free(dstr->str);
	free(dstr);
}