SYNOPSIS

#include <bson.h>

bool
bson_append_null (bson_t     *bson,
                  const char *key,
                  int         key_length);

DESCRIPTION

The bson_append_null() function shall append a new element to bson of type BSON_TYPE_NULL.

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

RETURN VALUE

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

ERRORS

FALSE is returned if there was insufficient space to append the element.

SEE ALSO

AUTHORS

This page was written by MongoDB, Inc.