SYNOPSIS

#include <bson.h>

char *
bson_iter_dup_utf8 (const bson_iter_t *iter,
                    uint32_t          *length);

DESCRIPTION

The bson_iter_dup_utf8() function shall be functionally equivalent to calling bson_strdup() on the result of a call to bson_iter_utf8().

RETURN VALUE

A newly allocated string that should be freed with bson_free().

SEE ALSO

AUTHORS

This page was written by MongoDB, Inc.