ldns_str2period(3)

ldns_str2period3

Converts a ttl value (like 5d2h) to a long

Usage

#include <stdint.h>
#include <stdbool.h>

#include <ldns/ldns.h>

uint32_t ldns_str2period(const char *nptr, const char **endptr);

Overview

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

Remarks

This manpage was automatically generated from the ldns source code.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 4 times.

  1. 5.0
  2. 6.0–8
  3. 9–10
  4. 11–12
  5. 13–Arch

Author

The ldns team at NLnet Labs.

Reporting bugs

Please report bugs to [email protected] or on GitHub at https://github.com/NLnetLabs/ldns/issues

From ldns 1.9.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.