---
name: "bson_strdup_printf"
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_strdup_printf"
---

# bson\_strdup\_printf(3)

## SYNOPSIS

```
char *
bson_strdup_printf (const char *format, ...);
```

## PARAMETERS

- •

  **format**: A printf style format string.

## DESCRIPTION

This function performs a printf style format but into a newly allocated string.

## RETURNS

A newly allocated string that should be freed with bson\_free().

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
