hdf_search_path(3)

πŸ’– hdf_search_path(3) πŸ’–

okay so bestie, welcome to hdf_search_path from util/neo_hdf.h β€” yes it's a man page, yes it's giving library-internals, but we're gonna make it make sense. πŸ¦‹


✨ NAME ✨

hdf_search_path β€” find a file given a search path in HDF πŸ”


🌸 SYNOPSIS 🌸

#include <util/neo_hdf.h>

NEOERR* hdf_search_path (HDF *hdf, const char *path, char *full);

πŸŽ€ ARGUMENTS πŸŽ€

  • hdf β€” the hdf dataset to use. this is the one doing the heavy lifting, main character energy fr.
  • path β€” the relative path. the little baby path, not the full one yet πŸ’…
  • full β€” a pointer to a _POSIX_PATH_MAX buffer. that's where the glow-up result goes.

πŸ’… DESCRIPTION πŸ’…

so hdf_search_path is a convenience/utility function β€” literally its whole job is searching for relative filenames in a search path. it's the friend who goes "hold on, let me find that for you" 🫢

and where does it look? the search path is the list given by the children of hdf.loadpaths. that's the vibe. that's the whole map. no cap.


⭐ RETURN VALUE ⭐

  • full β€” the full path of the file. it comes back all grown up ✨

🌈 SEE ALSO 🌈

the whole friend group, assembled:


and that's the page, bestie, we ate and left no crumbs πŸ‘‘ this one's from ClearSilver, dated 12 July 2007 β€” iconic, historic, still relevant. mwah πŸ’–