data_structures
bst_size.c
Go to the documentation of this file.
1 /* ************************************************************************** */
3 /* */
4 /* ::: :::::::: */
5 /* bst_size.c :+: :+: :+: */
6 /* +:+ +:+ +:+ */
7 /* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8 /* +#+#+#+#+#+ +#+ */
9 /* Created: 2020/07/18 00:23:59 by unite #+# #+# */
10 /* Updated: 2020/07/18 16:55:18 by unite ### ########.fr */
11 /* */
12 /* ************************************************************************** */
13 
14 #include "bst.h"
15 
16 size_t bst_size(const t_bst *bst)
17 {
18  return (bst->size);
19 }
s_bst::size
size_t size
The number of elements in this tree.
Definition: bst.h:60
bst.h
bst_size
size_t bst_size(const t_bst *bst)
Returns the number of elements in this tree.
Definition: bst_size.c:16
s_bst
A binary search tree.
Definition: bst.h:57