1ldns(3) Library Functions Manual ldns(3)
2
3
4
6 ldns_dname_left_chop, ldns_dname_label_count - dname label functions
7
8
10 #include <stdint.h>
11 #include <stdbool.h>
12
13 #include <ldns/ldns.h>
14
15 ldns_rdf* ldns_dname_left_chop(const ldns_rdf *d);
16
17 uint8_t ldns_dname_label_count(const ldns_rdf *r);
18
20 ldns_dname_left_chop() chop one label off the left side of a dname. so
21 wwww.nlnetlabs.nl, becomes nlnetlabs.nl This new name is a clone
22 and must be freed with ldns_deep_free()
23 d: the dname to chop
24 Returns the remaining dname
25
26 ldns_dname_label_count() count the number of labels inside a
27 LDNS_RDF_DNAME type rdf.
28 *r: the rdf
29 Returns the number of labels
30
32 The ldns team at NLnet Labs.
33
34
36 Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
37 http://www.nlnetlabs.nl/bugs/index.html
38
39
41 Copyright (c) 2004 - 2006 NLnet Labs.
42
43 Licensed under the BSD License. There is NO warranty; not even for MER‐
44 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
45
47 perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
48
50 This manpage was automatically generated from the ldns source code.
51
52
53
54 30 May 2006 ldns(3)