Scroll to navigation

BSON_STRING_TRUNCATE(3) Library Functions Manual BSON_STRING_TRUNCATE(3)

NAME

bson_string_truncate() - Truncates the string so that it is len bytes in length. This must be smaller or equal to the current length of the string.

SYNOPSIS


void bson_string_truncate (bson_string_t *string, uint32_t len);

PARAMETERS

string
A bson_string_t
len
The new length of the string, excluding the trailing

DESCRIPTION

Truncates the string so that it is len bytes in length. This must be smaller or equal to the current length of the string.

A byte will be placed where the end of the string occurrs.

COLOPHON

This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.
2016‐10‐12 libbson