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β amongoc_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 π
π COPYRIGHT π
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
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms