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

πŸ’– ldns(3) β€” the library functions manual, bestie edition πŸ’–

okay so this is a page from the Library Functions Manual for ldns(3) and it's genuinely so useful, come sit with me 🫢


✨ NAME ✨

ldns_fget_token, ldns_fskipcs β€” get tokens from files πŸ‘‘

🌸 SYNOPSIS 🌸

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

#include <ldns/ldns.h>

ssize_t ldns_fget_token(FILE *f, char *token, const char *delim, size_t
limit);

void ldns_fskipcs(FILE *fp, const char *s);

πŸ¦‹ DESCRIPTION πŸ¦‹

ldns_fget_token() πŸ’…

so this one returns a token/char from the stream F. and here's the cute part: this function deals with ( and ) in the stream, and ignores them when encountered. iconic behaviour, honestly.

  • *f: the file to read from
  • *token: the read token is put here
  • *delim: chars at which the parsing should stop
  • *limit: how much to read. If 0 the builtin maximum is used

Returns 0 on error of EOF of the stream F. Otherwise return the length of what is read. ✨

ldns_fskipcs() πŸŽ€

skips all of the characters in the given string in the fp, moving the position to the first character that is not in *s. no cap, that's literally it.

  • *fp: file to use
  • *s: characters to skip

Returns void. πŸ’€ (like, nothing. it just does the thing and leaves.)


πŸ‘‘ AUTHOR πŸ‘‘

The ldns team at NLnet Labs. absolute main characters, 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 bestie, don't be shy 🫢

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. like... zero warranty. none. not even the fitness one. 😭

🌈 SEE ALSO 🌈

ldns_buffer. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.

πŸ™ˆ REMARKS πŸ™ˆ

This manpage was automatically generated from the ldns source code. so yeah, a robot wrote it. still ate though. πŸ’…


and that's the whole page!! this one's from the ldns 3 manual, dated 30 May 2006, and it's serving vintage-but-timeless energy. stay tokenized, bestie πŸ’–βœ¨πŸ¦‹πŸŒΈπŸŽ€