---
name: "bson_utf8_next_char"
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_utf8_next_char"
---

# bson\_utf8\_next\_char(3)

## SYNOPSIS

```
const char *
bson_utf8_next_char (const char *utf8);
```

## PARAMETERS

- •

  **utf8**: A UTF-8 encoded string.

## DESCRIPTION

Advances within **utf8** to the next UTF-8 character, which may be multiple bytes offset from **utf8**. A pointer to the next character is returned.

It is invalid to call this function on a string whose current character is **\\0**.

## RETURNS

A pointer to the beginning of the next character in the UTF-8 encoded string.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
