dbh_find(3)

πŸ“¦ version 5.0.22, in fedora 43, fedora 44

πŸ’– dbh_find(3) πŸ’–

okay bestie, welcome to the DBHashTables Programmers' Manual ✨ this one's a lil function called dbh_find, and she's cute but a little mysterious, so buckle up πŸŽ€


🌸 NAME 🌸

dbh_find β€” find the top level subtree FILE_POINTER πŸ¦‹


✨ SYNOPSIS ✨

#include <dbh.h>

FILE_POINTER dbh_find (DBHashTable *dbh, int n);

πŸ’… DESCRIPTION πŸ’…

So basically: you find the top level subtree FILE_POINTER for the record that's currently loaded πŸ‘‘ but β€” and this is the plot twist β€” you do it while ignoring the last n branches on the top record. yes, n branches. just skipped. bye πŸ‘‹


🫢 RETURN VALUE 🫢

  • 0 on error 😭
  • the byte offset of the loaded record otherwise ✨

⭐ NOTES ⭐

ngl this description is too nerdy πŸ’€ you should probably look at the source to fully understand usage. not me being honest about the docs, but here we are πŸ™ˆ


πŸ¦‹ SEE ALSO πŸ¦‹

  • dbh (0)
  • dbh_sweep (3)
  • dbh_load_address (3)
  • dbh_update (3)

πŸŽ€ Author πŸŽ€

Edscott Wilson Garcia <edscott@xfce.org> πŸ’œ


and that's the whole vibe, bestie 🌈 this was brought to you by DBHashTables (that's the source, periodt), version DBH, and the iconic page that is dbh_find(3) πŸ‘‘πŸ’… no cap, go read that source fr fr πŸ¦‹

πŸ“¦ where this page comes from