about summary refs log tree commit diff
path: root/src/libdatastruct/avltree_insert.c
blob: b3160b51d6939460bc8b300c61fcefac1178e753 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <skalibs/avltree.h>

int avltree_insert (avltree *t, uint32_t d)
{
  uint32_t i ;
  if (!avltree_newnode(t, d, &i)) return 0 ;
  avltree_insertnode(t, i) ;
  return 1 ;
}