1ldns(3)                    Library Functions Manual                    ldns(3)
2
3
4

NAME

6       ldns_str2period - converts a ttl value (like 5d2h) to a long
7
8

SYNOPSIS

10       #include <stdint.h>
11       #include <stdbool.h>
12
13       #include <ldns/ldns.h>
14
15       uint32_t ldns_str2period(const char *nptr, const char **endptr);
16

DESCRIPTION

18       ldns_str2period() converts a ttl value (like 5d2h) to a long.
19              nptr: the start of the string
20              endptr: points to the last char in case of error
21              Returns the convert duration value
22

AUTHOR

24       The ldns team at NLnet Labs.
25
26

REPORTING BUGS

28       Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
29       http://www.nlnetlabs.nl/bugs/index.html
30
31
33       Copyright (c) 2004 - 2006 NLnet Labs.
34
35       Licensed under the BSD License. There is NO warranty; not even for MER‐
36       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
37

SEE ALSO

39       perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
40

REMARKS

42       This manpage was automatically generated from the ldns source code.
43
44
45
46                                  30 May 2006                          ldns(3)
Impressum