#include <string.h>
#include "avl-cmp.h"
#include "blob.h"
Go to the source code of this file.
|
static int | _min (int v1, int v2) |
|
int | avl_strcmp (const void *k1, const void *k2, void *ptr) |
|
int | avl_blobcmp (const void *k1, const void *k2, void *ptr) |
|
◆ _min()
static int _min |
( |
int |
v1, |
|
|
int |
v2 |
|
) |
| |
|
inlinestatic |
Definition at line 20 of file avl-cmp.c.
22 return v1 < v2 ? v1 : v2;
◆ avl_blobcmp()
int avl_blobcmp |
( |
const void * |
k1, |
|
|
const void * |
k2, |
|
|
void * |
ptr |
|
) |
| |
Definition at line 32 of file avl-cmp.c.
36 return memcmp(k1, k2, len);
static int _min(int v1, int v2)
static size_t blob_raw_len(const struct blob_attr *attr)
◆ avl_strcmp()
int avl_strcmp |
( |
const void * |
k1, |
|
|
const void * |
k2, |
|
|
void * |
ptr |
|
) |
| |
Definition at line 26 of file avl-cmp.c.
28 return strcmp(k1, k2);