MONGOC_URI_COPY(3)
π MONGOC_URI_COPY(3) π
okay so bestie, welcome to the libmongoc corner of the manual β this is MONGOC_URI_COPY(3) and it's literally the shortest lil glow-up in the whole library. no cap.
β¨ SYNOPSIS β¨
mongoc_uri_t *
mongoc_uri_copy (const mongoc_uri_t *uri);
like, that's it. that's the whole thing. she's compact. she's iconic. π
πΈ PARAMETERS πΈ
uriβ amongoc_uri_t. just hand her over, she's not gonna get hurt (it'sconst, she's safe π«Ά).
π¦ DESCRIPTION π¦
so what does she do? she copies the entire contents of a URI. the whole thing. every last crumb. it's giving "duplicate everything, leave nothing behind" energy π
entire contents. not part of it. not a vibe-check sample. the entire contents. periodt.
π RETURNS π
she gives you back a newly allocated mongoc_uri_t β brand new, fresh out the box, main character energy β¨
β οΈ bestie listen: that newmongoc_uri_tis yours to free withmongoc_uri_destroy(). don't just ghost her, okay? that's a leak and we don't do leaks in this house π
also real talk: she may return NULL on invalid host. so do your vibe check before you dereference, iykyk π
π AUTHOR π
MongoDB, Inc β the icons themselves π
π COPYRIGHT π
2009-present, MongoDB, Inc. β all the legal sparkle, preserved exactly π
mwah, that's the whole page bestie, go forth and copy those URIs responsibly π§ββοΈ
with love from libmongoc version 2.5.6, dated Oct 09, 2026 β see you in the next manpage, ily π
π¦ 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