SYNOPSIS

#include <bson.h>

void
bson_string_truncate (bson_string_t *string,
                      uint32_t       len);

DESCRIPTION

The bson_string_truncate() function shall truncate the length of string to the given length. The string will still be NULL terminated.

ERRORS

No errors are defined.

AUTHORS

This page was written by MongoDB, Inc.