---
name: "bson_isspace"
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_isspace"
---

# bson\_isspace(3)

## SYNOPSIS

```
bool
bson_isspace (int c);
```

## PARAMETERS

- •

  **c**: A character.

## DESCRIPTION

A safer alternative to **isspace** with additional bounds checking.

It is equivalent to **isspace**, excepts always returns false if **c** is out of the inclusive bounds \[-1, 255\].

## RETURNS

A boolean indicating if the **c** is considered white-space (as determined by the **isspace** function).

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
