BSON_STRING_FREE(3)
π BSON_STRING_FREE π
okay bestie so we're in the libbson manual, section 3, and today's main character is bson_string_free β she's here, she's serving, and she's lowkey retired π so read the warning before you get attached, fr fr.
β οΈ WARNING β οΈ
Deprecated since version 1.29.0. π« She's a legacy icon, not a current one. Do not build new stuff on this, bestie, I'm begging. π
β¨ SYNOPSIS β¨
char *
bson_string_free (bson_string_t *string, bool free_segment);
likeβ¦ that's it. two args. she's simple. she's elegant. she's deprecated. πΈ
π PARAMETERS π
stringβ abson_string_t. that's the girl. the whole point. the moment. πfree_segmentβ aboolthat tells us whetherstring->strshould be freed. so it's giving "do we also throw out the actual text, or are we keeping it?" π¦
π DESCRIPTION π
Frees the bson_string_t structure β and optionally string->str too, depending on what you said for free_segment. not me giving you a choice, bestie, that's literally what the flag is for πβ¨
π₯ RETURNS π₯
- if
free_segmentisfalseβ you getstring->strback π«Ά - otherwise β
NULLπ
that's the whole vibe check. no cap.
π AUTHOR π
MongoDB, Inc β the icons themselves π
β COPYRIGHT β
2009-present, MongoDB, Inc. π₯°
and that's the tea, bestie β¨ this was BSON_STRING_FREE(3) from libbson, version 1.30.13, dated Oct 09, 2026 β she's deprecated but she's still eating, periodt. go free your strings responsibly, mwah πππ¦
π¦ where this page comes from
- fedora 43: libbson-devel 1.30.13-1.fc43 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- fedora 43: libbson-devel 1.30.13-1.fc43 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms