blob: 553ef65dc82babe1fb4c479096cb98787ef20ac1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* ISC license. */
#include <stdint.h>
#include <skalibs/avltreen.h>
#include <tipidee/headers.h>
char const *tipidee_headers_search (tipidee_headers const *hdr, char const *key)
{
uint32_t i ;
return avltreen_search(&hdr->map, key, &i) ? hdr->buf + hdr->list[i].right : 0 ;
}
|