BSON_STRING_APPEND_C(3)

πŸ’– BSON_STRING_APPEND_C πŸ’–

okay bestie, welcome to libbson β€” yes, that libbson, the one from the BSON_STRING_APPEND_C(3) manual page. sit down, grab a boba, we're gonna talk about appending exactly one (1) lil character to a string builder. it's giving tiny but mighty. ✨

⚠️ WARNING: this one is deprecated since version 1.29.0. she's retired, she's living her best life in the archives, and you should probably not be starting anything new with her. no cap. πŸ’€

✨ SYNOPSIS ✨

void
bson_string_append_c (bson_string_t *string, char str);

πŸŽ€ PARAMETERS πŸŽ€

  • string β€” a bson_string_t. that's your string builder, your little construction zone, your main character. πŸ’…
  • str β€” an ASCII char. just one. a single lil guy. πŸ“

🌸 DESCRIPTION 🌸

so what does she do? she appends c to the string builder string. that's it. that's the whole job. one character, appended, done, slay. πŸ¦‹

😭 WARNING: the length of the resulting string β€” and yes, that includes the NULL terminator, don't forget the terminator, bestie, she counts too β€” MUST NOT exceed UINT32_MAX. like, must not. this is not a vibe check situation, this is a hard limit. go over it and you're in undefined-behaviour territory and we do not go there. πŸ™ˆ

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” the icons themselves. πŸ’œ


2009-present, MongoDB, Inc.


okay that's the whole page, you ate it, you understood it, periodt. πŸ’…βœ¨

version 1.30.13, dated Oct 09, 2026, from the libbson manual β€” mwah, take care of her, she's deprecated but she's still iconic. πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from