---
name: "bson_string_append"
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_string_append"
---

# bson\_string\_append(3)

**WARNING:**

Deprecated since version 1.29.0.

## SYNOPSIS

```
void
bson_string_append (bson_string_t *string, const char *str);
```

## PARAMETERS

- •

  **string**: A *bson\_string\_t*.

- •

  **str**: A string.

## DESCRIPTION

Appends the ASCII or UTF-8 encoded string **str** to **string**. This is not suitable for embedding NULLs in strings.

**WARNING:**

The length of the resulting string (including the **NULL** terminator) MUST NOT exceed **UINT32\_MAX**.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
