NLnet Labs documentation
LDNS
Go to main site
linktest.c
Go to the documentation of this file.
1
2
#include "
ldns/config.h
"
3
#include <
ldns/ldns.h
>
4
5
int
6
main
(
void
)
7
{
8
ldns_rr
*rr =
ldns_rr_new
();
9
10
ldns_rr_free
(rr);
11
return
0;
12
}
13
config.h
ldns.h
Including this file will include all ldns files, and define some lookup tables.
main
int main(void)
Definition:
linktest.c:6
ldns_rr_free
void ldns_rr_free(ldns_rr *rr)
frees an RR structure
Definition:
rr.c:81
ldns_rr_new
ldns_rr * ldns_rr_new(void)
creates a new rr structure.
Definition:
rr.c:30
ldns_struct_rr
Resource Record.
Definition:
rr.h:310