---
name: "mongoc_write_concern_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_write_concern_copy"
---

# mongoc\_write\_concern\_copy(3)

## SYNOPSIS

```
mongoc_write_concern_t *
mongoc_write_concern_copy (const mongoc_write_concern_t *write_concern);
```

## PARAMETERS

- •

  **write\_concern**: A *mongoc\_write\_concern\_t*.

## DESCRIPTION

Performs a deep copy of **write\_concern**.

## RETURNS

Returns a newly allocated copy of **write\_concern** that should be freed with *mongoc\_write\_concern\_destroy()* when no longer in use.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
