LDNS_STR2PERIOD(3) - Linux manual page online | Library functions
Converts a ttl value (like 5d2h) to a long.
Chapter
30 May 2006
ldns(3) Library Functions Manual ldns(3)
@nlnetlabs.nl or in our bugzilla at http://www.nlnet‐
labs.nl/bugs/index.html
30 May 2006 ldns(3)
NAME
ldns_str2period - converts a ttl value (like 5d2h) to a longSYNOPSIS
#include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> uint32_t ldns_str2period(const char *nptr, const char **endptr);DESCRIPTION
ldns_str2period() converts a ttl value (like 5d2h) to a long. nptr: the start of the string endptr: points to the last char in case of error Returns the convert duration valueAUTHOR
The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben.REPORTING BUGS
Please report bugs to