hdf_get_valuevf(3)

πŸ’– hdf_get_valuevf(3) πŸ’–

okay bestie, welcome to the manual page for hdf_get_valuevf β€” she lives in util/neo_hdf.h and she is, lowkey, the varargs girlie of the HDF crew. pull up a chair 🫢


✨ NAME ✨

hdf_get_valuevf β€” return the value of a node in the data set πŸ’…


🌈 SYNOPSIS 🌈

#include <util/neo_hdf.h>

char* hdf_get_valuevf (HDF *hdf, const char *namefmt, va_list ap);

no cap, that's the whole signature. she takes a va_list and she slays.


πŸŽ€ ARGUMENTS πŸŽ€

  • hdf β€” the dataset node to start from. this is your starting point, your home base, your main character energy origin story πŸ’«
  • namefmt β€” the format string. yes bestie, a printf-style format string, she's flexible like that ✨
  • ap β€” a va_list of varargs. it's giving "I already got my args packed up, just hand me the list" πŸ“¦

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, bestie β˜•

hdf_get_valuevf walks the data set that hdf points to, using namefmt printf-expanded with the varargs in ap, and then returns the string value hanging out at that spot. if it's not there? you get NULL. that's it, that's the whole vibe. πŸ•³οΈ

and here's the part that makes her different from her sister hdf_get_value β€” there is no default value possible with this one. none. zero. nope. hdf_get_value will let you hand over a fallback if the node's missing, but hdf_get_valuevf does NOT do that. it's all or nothing, iconic behavior honestly πŸ‘‘


πŸ’€ RETURN VALUE πŸ’€

None

not me reading the docs and the return value section just says None 😭 the description clearly says it returns a string value or NULL, but the manpage itself says None, and bestie I am not editing the source material. keeping the facts exactly as they are, periodt. πŸ“Œ

🌸 SEE ALSO 🌸

the whole HDF friend group showed up, and I mean the whole group chat:

(and yes, hdf_get_valuevf(3) references herself in her own SEE ALSO. self-love queen. we stan πŸ’œ)


okay that's the whole page bestie!! go forth and get those values πŸ’–

this absolute gem comes to you from the ClearSilver fam, dated 12 July 2007 β€” vintage, but she still hits πŸŽ€βœ¨