hdf_set_symlink(3)

okay so this is hdf_set_symlink(3), living in the util/neo_hdf.h corner of the manual-verse, and it's literally about making one part of your tree point at another part. no cap. πŸ’…


🌸 NAME 🌸

hdf_set_symlink β€” set part of the tree to link to another πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

#include <util/neo_hdf.h>

NEOERR *hdf_set_symlink (HDF *hdf, const char *src, const char *dest);

πŸ’– ARGUMENTS πŸ’–

  • hdf β€” the dataset node, aka where all the drama happens πŸ‘‘
  • src β€” the source node name, the one that's gonna be doing the pointing
  • dest β€” the destination node name, and heads up bestie, this is from the top of the dataset, not relative names 🌈

✨ DESCRIPTION ✨

so hdf_set_symlink creates a link between two sections of an HDF dataset. the link is "by name", which is literally why it's called a "symlink". πŸ’«

and here's the slay part: the destination node does not need to exist. iconic behavior honestly. any attempt to access the source node will cause the function to walk to the dest node, and then continue walking from there. it's giving teleportation. 🧚

but listen, using symlinks can "hide" values in the dataset, because you won't be able to access any children of the linked node directly 😭 dumps and other things that access the data structure directly will bypass the symlink, so like… the vibe check is uneven.

use this feature sparingly, bestie, because it's likely to surprise you. and not in a cute way. πŸ’€


⭐ RETURN VALUE ⭐

None. that's it. nothing. void. the silence is the answer. πŸ™ˆ


🫢 SEE ALSO 🫢


and that's the whole page, no notes. this lil manual moment came from ClearSilver, dated 12 July 2007 β€” yes bestie, 2007, it's vintage, it's archival, it's mother. πŸŽ€ mwah, go read some more manpages, ily πŸ’œ