1ldns(25 Apr 2005) ldns(25 Apr 2005)
2
3
4
6 ldns_str2period
7
8
10 #ifdef HAVE_STDINT_H
11 #include <stdint.h>
12 #endif /* HAVE_STDINT_H */
13
14 #ifdef HAVE_STDBOOL_H
15 #include <stdbool.h>
16 #endif /* HAVE_STDBOOL_H */
17
18 #include <ldns/ldns.h>
19
20 uint32_t ldns_str2period(const char *nptr, const char **endptr);
21
23 ldns_str2period() converts a ttl value (like 5d2h) to a long.
24 nptr: the start of the string
25 endptr: points to the last char in case of error
26 Returns the convert duration value
27
29 The ldns team at NLnet Labs. Which consists out of: Jelte Jansen, Erik
30 Rozendaal and Miek Gieben.
31
32
34 Please report bugs to ldns-team@nlnetlabs.nl or in our Bugzilla at
35 http://www.nlnetlabs.nl/bugs/index.html
36
37 Be sure to select ldns as the product.
38
39
41 Copyright (c) 2004, 2005 NLnet Labs. Licensed under the BSD License.
42 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
43 PARTICULAR PURPOSE.
44
46 perldoc Net::DNS, RFC1043, RFC1035, RFC4033, RFC4034 and RFC4035.
47
49 This manpage was automaticly generated from the ldns source code by use
50 of Doxygen and some perl.
51
52
53
54 ldns(25 Apr 2005)