---
name: "bson_strerror_r"
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_strerror_r"
---

# bson\_strerror\_r(3)

## SYNOPSIS

```
char *
bson_strerror_r (int err_code, char *buf, size_t buflen);
```

## PARAMETERS

- •

  **err\_code**: An errno.

- •

  **buf**: A location to store the string.

- •

  **buflen**: The size of **buf**.

## DESCRIPTION

This is a portability wrapper around **strerror()**.

## RETURNS

The passed in **buf** parameter or an internal string.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
