---
name: "bson_get_version"
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_get_version"
---

# bson\_get\_version(3)

## SYNOPSIS

```
const char *
bson_get_version (void);
```

## DESCRIPTION

A string representation of Libbson's version, formatted something like "1.2.3" or "1.2.3-pre".

## RETURNS

A string you must not modify or free.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
