---
name: "mongoc_server_description_new_copy"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_server_description_new_copy"
---

# mongoc\_server\_description\_new\_copy(3)

## SYNOPSIS

```
mongoc_server_description_t *
mongoc_server_description_new_copy (
   const mongoc_server_description_t *description);
```

## PARAMETERS

- •

  **description**: A *mongoc\_server\_description\_t*.

## DESCRIPTION

Performs a deep copy of **description**.

## RETURNS

Returns a newly allocated copy of **description** that should be freed with *mongoc\_server\_description\_destroy()* when no longer in use. Returns NULL if **description** is NULL.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
