data_structures
stack_delete.c
Go to the documentation of this file.
1 /* ************************************************************************** */
3 /* */
4 /* ::: :::::::: */
5 /* stack_delete.c :+: :+: :+: */
6 /* +:+ +:+ +:+ */
7 /* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8 /* +#+#+#+#+#+ +#+ */
9 /* Created: 2020/07/17 00:57:02 by unite #+# #+# */
10 /* Updated: 2020/07/17 00:57:22 by unite ### ########.fr */
11 /* */
12 /* ************************************************************************** */
13 
14 #include "stack.h"
15 
16 void stack_delete(t_stack *stack)
17 {
18  array_delete(stack);
19 }
s_array
A resizable array.
Definition: array.h:47
array_delete
void array_delete(t_array *array)
Deletes this array and free all its items and the associated data.
Definition: array_delete.c:16
stack_delete
void stack_delete(t_stack *stack)
Deletes the stack and frees memory taken by its contents.
Definition: stack_delete.c:16
stack.h