hdf_get_copy(3)
πΈ hdf_get_copy(3) πΈ
okay bestie, welcome to the manual page for hdf_get_copy(3) β yes that's the whole title, we're keeping it, it's giving β¨ documentation β¨
π NAME π
hdf_get_copy β returns a copy of a string in the HDF data set π«Ά
like. it copies the string. that's the whole job. and it SLAYED at it.
β¨ SYNOPSIS β¨
#include <util/neo_hdf.h>
NEOERR* hdf_get_copy (HDF *hdf, const char *name, char **value,
const char *defval);
π ARGUMENTS π
hdfβ the dataset node you're starting from, like your home base, your origin story πnameβ the name to walk the data set to. yes queen, we're walking, it's a whole journey πdefvalβ the default value to return if the node doesn't exist π₯Ί (the safety net. the backup bestie. the "if he doesn't text back" plan)
π¦ DESCRIPTION π¦
okay so hdf_get_copy is similar to hdf_get_value, except β and this is the part that matters, no cap β it returns an malloc'd copy of the string π
not the string itself. a copy. a whole new string that is yours, that you own, that you can do whatever you want with. main character energy fr fr π
π RETURN VALUE π
valueβ the allocated string (ifdefval = NULL, thenvaluewill beNULLifdefvalis used) π«
like. read that again bestie. if defval is NULL, and defval gets used, then value is NULL. it's giving "the absence of the fallback is itself the fallback." iconic. confusing. both. π
π SEE ALSO π
the whole group chat, assembled π«Ά every single one, in order, no one left behind:
hdf_set_symlink(3)hdf_get_valuef(3)compareFunc)(3)hdf_dump_str(3)hdf_get_int_value(3)hdf_read_string_ignore(3)hdf_copy(3)hdf_get_node(3)hdf_set_value(3)hdf_obj_child(3)hdf_read_string(3)hdf_set_buf(3)hdf_register_fileload(3)hdf_get_obj(3)hdf_get_attr(3)hdf_obj_top(3)hdf_dump_format(3)hdf_destroy(3)hdf_init(3)hdf_obj_value(3)hdf_write_string(3)hdf_set_valuevf(3)hdf_sort_obj(3)hdf_write_file_atomic(3)hdf_obj_attr(3)hdf_set_valuef(3)hdf_get_copy(3)hdf_write_file(3)hdf_get_valuevf(3)hdf_set_int_value(3)hdf_dump(3)hdf_get_value(3)hdf_set_copy(3)hdf_obj_next(3)hdf_search_path(3)hdf_obj_name(3)hdf_set_attr(3)hdf_get_child(3)hdf_remove_tree
(yes hdf_get_copy(3) is in its own SEE ALSO list. self-love. we support it. π)
π and that's the page bestie! go forth and copy those strings, and remember to free them β that's not in this manpage but like, iykyk π
ClearSilver π 12 July 2007 β mwah, that's the source, the version, and the date, all wrapped up in a little bow for you ππ bye pookie, love u, see u in the next manpage β¨
π¦ where this page comes from
- debian bookworm: clearsilver-dev 0.10.5-4+b5
- debian trixie: clearsilver-dev 0.10.5-6+b1
- epel 10: clearsilver 0.10.5-80.el10_2 Β· Apache-1.1
- epel 9: clearsilver 0.10.5-74.el9 Β· Apache-1.1
- fedora 43: clearsilver 0.10.5-80.fc43 Β· Apache-1.1
- fedora 44: clearsilver 0.10.5-82.fc44 Β· Apache-1.1
- ubuntu jammy: clearsilver-dev 0.10.5-4build3
- ubuntu noble: clearsilver-dev 0.10.5-4build7
- ubuntu questing: clearsilver-dev 0.10.5-6build1
- ubuntu resolute: clearsilver-dev 0.10.5-7
- ubuntu stonking: clearsilver-dev 0.10.5-7build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms