libnvmf_uri_set_fragment(9)
π libnvmf_uri_set_fragment(9) β the glow-up your URI's fragment deserves
okay so bestie, quick vibe check: this is a page straight out of the libnvme API manual, section 9, and it's about one tiny little setter that does exactly one (1) thing. no cap. it sets the fragment. that's it, that's the whole personality, and honestly? iconic. β¨
πΈ NAME πΈ
libnvmf_uri_set_fragment β set fragment. literally that's the whole job description π
π¦ SYNOPSIS π¦
void libnvmf_uri_set_fragment (struct libnvmf_uri *p , const char
*fragment );
bestie look at it. it's giving "small function, big energy". returns void, meaning it hands you nothing back β no status, no error code, no little note saying "hey it worked". you just call it and trust the process π«Ά
β ARGUMENTS β
pβ thestruct libnvmf_uriinstance you're updating. your main character struct. the one getting the glow-up πfragmentβ the new string, king π β and heads up, a copy is stored, so it's not like you're handing over your only braincell string, the function keeps its own duplicate. and if you passNULL? that's the "actually nevermind" move β it clears the fragment. poof. gone. π§
ngl the NULL-to-clear thing is the cutest part β one argument, two moods: set it, or unset it. no extra function needed. slay. π₯
so yeah, that's the whole page, strawberry π β one function, two arguments, one very clear job. now go forth and set those fragments, fr fr π
β libnvme API manual, October 2026, signing off πβ¨
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms