SYNOPSIS

#include <bson.h>

bool
bson_append_int32 (bson_t     *bson,
                   const char *key,
                   int         key_length,
                   int32_t     value);

DESCRIPTION

The bson_append_int32() function shall append a new element to bson containing a 32-bit signed integer.

If key is NULL terminated, -1 may be passed for key_length.

RETURN VALUE

TRUE if successful. Otherwise FALSE and no modifications are made to bson.

ERRORS

FALSE is returned if there is insufficient space for the element.

SEE ALSO

AUTHORS

This page was written by MongoDB, Inc.