data_structures
stack_push.c
Go to the documentation of this file.
1 /* ************************************************************************** */
3 /* */
4 /* ::: :::::::: */
5 /* stack_push.c :+: :+: :+: */
6 /* +:+ +:+ +:+ */
7 /* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8 /* +#+#+#+#+#+ +#+ */
9 /* Created: 2020/07/17 00:50:47 by unite #+# #+# */
10 /* Updated: 2020/09/07 22:12:33 by unite ### ########.fr */
11 /* */
12 /* ************************************************************************** */
13 
14 #include "stack.h"
15 
16 void stack_push(t_stack *stack, const void *data)
17 {
18  array_append(stack, data);
19 }
s_array
A resizable array.
Definition: array.h:47
stack_push
void stack_push(t_stack *stack, const void *data)
Copy the item and add it to the stack.
Definition: stack_push.c:16
array_append
void array_append(t_array *array, const void *content)
Appends a copy the specified element to the end of this array.
Definition: array_append.c:17
stack.h