ldns(3)

πŸ“¦
version 1.9.2 Β· 2 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 (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 πŸ’–πŸŽ€πŸŒΈ