data_structures
stack_copy.c
Go to the documentation of this file.
1 /* ************************************************************************** */
3 /* */
4 /* ::: :::::::: */
5 /* stack_copy.c :+: :+: :+: */
6 /* +:+ +:+ +:+ */
7 /* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8 /* +#+#+#+#+#+ +#+ */
9 /* Created: 2020/07/22 10:14:20 by unite #+# #+# */
10 /* Updated: 2020/07/22 10:14:41 by unite ### ########.fr */
11 /* */
12 /* ************************************************************************** */
13 
14 #include "stack.h"
15 
16 t_stack *stack_copy(const t_stack *stack)
17 {
18  return (array_copy(stack));
19 }
array_copy
t_array * array_copy(const t_array *array)
Copies the array and all it contents.
Definition: array_copy.c:16
s_array
A resizable array.
Definition: array.h:47
stack_copy
t_stack * stack_copy(const t_stack *stack)
Copies a stack and all it contents.
Definition: stack_copy.c:16
stack.h