data_structures
src
data_structures
stack
stack_size.c
Go to the documentation of this file.
1
/* ************************************************************************** */
3
/* */
4
/* ::: :::::::: */
5
/* stack_size.c :+: :+: :+: */
6
/* +:+ +:+ +:+ */
7
/* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8
/* +#+#+#+#+#+ +#+ */
9
/* Created: 2020/07/17 00:57:31 by unite #+# #+# */
10
/* Updated: 2020/07/18 16:42:51 by unite ### ########.fr */
11
/* */
12
/* ************************************************************************** */
13
14
#include "
stack.h
"
15
16
size_t
stack_size
(
const
t_stack
*stack)
17
{
18
return
(
array_size
(stack));
19
}
array_size
size_t array_size(const t_array *array)
Returns the number of elements in this array.
Definition:
array_size.c:16
s_array
A resizable array.
Definition:
array.h:47
stack_size
size_t stack_size(const t_stack *stack)
Returns the number of items in this stack.
Definition:
stack_size.c:16
stack.h
Generated by
1.8.16