ldns(3)
π NAME π
ldns_str2period β bestie, it takes a ttl value (like 5d2h) and turns it into a long πβ¨
πΈ SYNOPSIS πΈ
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
uint32_t ldns_str2period(const char *nptr, const char **endptr);
π DESCRIPTION π
okay so ldns_str2period() converts a ttl value (like 5d2h) to a long. that's literally the whole vibe. it's giving "I speak fluent time-strings" π
nptrβ the start of the string, bestie. where the journey begins π«Άendptrβ points to the last char in case of error. so if something goes wrong, this lil guy knows where it all fell apart π
and the return value? it returns the convert duration value π₯ no cap.
π AUTHOR π
The ldns team at NLnet Labs. icons only, fr fr π
π¦ REPORTING BUGS π¦
Please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues β they wanna hear from you, no gatekeeping πβ¨
π COPYRIGHT π
Copyright (c) 2004 - 2006 NLnet Labs.
Licensed under the BSD License.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. π so like, don't come for them if it breaks, periodt.
β SEE ALSO β
the required reading list, bestie πβ¨
π§ REMARKS π§
This manpage was automatically generated from the ldns source code. so yeah, the robots wrote it, and I just gave it main character energy π π€
and that's the whole page, gorgeous β this was ldns(3) from back in the day, 30 May 2006, courtesy of the ldns library. catch you in the next manpage, mwah πππΈ
π¦ where this page comes from
- alpine 3.22: ldns-doc 1.8.4-r0 Β· BSD-3-Clause
- alpine 3.23: ldns-doc 1.8.4-r1 Β· BSD-3-Clause
- alpine 3.24: ldns-doc 1.8.4-r1 Β· BSD-3-Clause
- arch rolling: ldns 1.9.2-1 Β· custom:BSD
- debian trixie: libldns-dev 1.8.4-2+b1
- fedora 43: ldns-devel 1.8.4-8.fc43 Β· BSD-3-Clause
- fedora 43: ldns-devel 1.8.4-8.fc43 Β· BSD-3-Clause
- fedora 43: ldns-devel 1.9.2-1.fc43 Β· BSD-3-Clause
- fedora 43: ldns-devel 1.9.2-1.fc43 Β· BSD-3-Clause
- fedora 44: ldns-devel 1.9.0-2.fc44 Β· BSD-3-Clause
- fedora 44: ldns-devel 1.9.0-2.fc44 Β· BSD-3-Clause
- fedora 44: ldns-devel 1.9.2-1.fc44 Β· BSD-3-Clause
- fedora 44: ldns-devel 1.9.2-1.fc44 Β· BSD-3-Clause
- nixos 26.05: ldns 1.9.2
- nixpkgs unstable: ldns 1.9.2
- opensuse-leap 16.0: ldns-devel 1.8.4-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: ldns-devel 1.8.4-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: ldns-devel 1.8.4-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: ldns-devel 1.8.4-160000.3.1 Β· BSD-3-Clause
- ubuntu questing: libldns-dev 1.8.4-2build1
- ubuntu resolute: libldns-dev 1.8.4-2build3
- ubuntu stonking: libldns-dev 1.9.2-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms