Provided by: libmongoc-doc_2.2.0-1_all bug

SYNOPSIS

          mongoc_server_api_t *
          mongoc_server_api_copy (const mongoc_server_api_t *api);

       Creates a deep copy of api.

PARAMETERS

api: A mongoc_server_api_t <>.

RETURNS

       Returns  a  newly  allocated  copy  of api that must be freed with mongoc_server_api_destroy() <> when no
       longer in use.

Author

       MongoDB, Inc

Copyright

       2009-present, MongoDB, Inc.

2.2.0                                             Nov 26, 2025                         MONGOC_SERVER_API_COPY(3)