data_structures
stack_pop.c
Go to the documentation of this file.
1 /* ************************************************************************** */
3 /* */
4 /* ::: :::::::: */
5 /* stack_pop.c :+: :+: :+: */
6 /* +:+ +:+ +:+ */
7 /* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8 /* +#+#+#+#+#+ +#+ */
9 /* Created: 2020/07/17 00:55:10 by unite #+# #+# */
10 /* Updated: 2020/07/17 00:55:58 by unite ### ########.fr */
11 /* */
12 /* ************************************************************************** */
13 
14 #include "stack.h"
15 
16 void *stack_pop(t_stack *stack)
17 {
18  return (array_pop(stack));
19 }
array_pop
void * array_pop(t_array *array)
Removes and returns the element at the end of this array.
Definition: array_pop.c:17
s_array
A resizable array.
Definition: array.h:47
stack_pop
void * stack_pop(t_stack *stack)
Removed and returns the item most recently added to this stack.
Definition: stack_pop.c:16
stack.h