.ad l
.TH ldns 3 "30 May 2006"
.SH NAME
ldns_dname_left_chop, ldns_dname_label_count \- dname label functions

.SH SYNOPSIS
#include <stdint.h>
.br
#include <stdbool.h>
.br
.PP
#include <ldns/ldns.h>
.PP
ldns_rdf* ldns_dname_left_chop(const ldns_rdf *d);
.PP
uint8_t ldns_dname_label_count(const ldns_rdf *r);
.PP

.SH DESCRIPTION
.HP
\fIldns_dname_left_chop\fR()
chop one label off the left side of a dname. so
wwww.nlnetlabs.nl, becomes nlnetlabs.nl
This new name is a clone and must be freed with ldns_deep_free()
\.br
\fBd\fR: the dname to chop
\.br
Returns the remaining dname
.PP
.HP
\fIldns_dname_label_count\fR()
count the number of labels inside a \%LDNS_RDF_DNAME type rdf.
\.br
\fB*r\fR: the rdf
\.br
Returns the number of labels
.PP
.SH AUTHOR
The ldns team at NLnet Labs.

.SH REPORTING BUGS
Please report bugs to ldns-team@nlnetlabs.nl or in 
our bugzilla at
http://www.nlnetlabs.nl/bugs/index.html

.SH COPYRIGHT
Copyright (c) 2004 - 2006 NLnet Labs.
.PP
Licensed under the BSD License. There is NO warranty; not even for
MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.
.SH SEE ALSO
\fBperldoc Net::DNS\fR, \fBRFC1034\fR,
\fBRFC1035\fR, \fBRFC4033\fR, \fBRFC4034\fR and \fBRFC4035\fR.
.SH REMARKS
This manpage was automatically generated from the ldns source code.
