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

# bson\_concat(3)

## SYNOPSIS

```
bool
bson_concat (bson_t *dst, const bson_t *src);
```

## PARAMETERS

- •

  **dst**: A *bson\_t*.

- •

  **src**: A *bson\_t*.

## DESCRIPTION

The *bson\_concat()* function shall append the contents of **src** to **dst**.

## RETURNS

Returns **true** if successful; **false** if the operation would overflow the maximum document size or another invalid state is detected.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
