blob: b3d24d0f61e8db82b7676f8e6fb2cbe3a90b2abe (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* ISC license. */
#include <skalibs/avltreen.h>
int avltreen_insert (avltreen *t, unsigned int d)
{
unsigned int i = avltreen_newnode(t, d) ;
if (i >= avltreen_totalsize(t)) return 0 ;
avltreen_insertnode(t, i) ;
return 1 ;
}
|