MONGOC_SERVER_API_COPY(3)

πŸ’… MONGOC_SERVER_API_COPY(3) πŸ’…

okay so bestie, welcome to another iconic page from the libmongoc manual ✨ this one is called mongoc_server_api_copy and honestly? it's giving short-and-sweet main character energy πŸŽ€


✨ SYNOPSIS ✨

mongoc_server_api_t *
mongoc_server_api_copy (const mongoc_server_api_t *api);

Creates a deep copy of api. like, not a shallow little copy where everyone shares the same vibes β€” a whole deep one, no cap 🫢


🌸 PARAMETERS 🌸

  • api β€” a mongoc_server_api_t. that's it. that's the whole input. slay πŸ’…

πŸ¦‹ RETURNS πŸ¦‹

Returns a newly allocated copy of api πŸ”₯ and here's the part you cannot skip, bestie:

⚠️ that copy must be freed with mongoc_server_api_destroy() when it's no longer in use. not "whenever", not "maybe later", not "when I remember" β€” when you're done with it. memory leaks are not the vibe. πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc 🌈


2009-present, MongoDB, Inc. β€” periodt πŸ’œ


okay that's the whole page, you ate that πŸ“βœ¨ this little drop was from libmongoc version 2.5.6, dated Oct 09, 2026 β€” see u on the next manpage, mwah πŸ’–πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from