SYNOPSIS

#include <bson.h>

char *
bson_strdup (const char *str);

char *
bson_strdup_printf (const char *format,
                    ...);

char *
bson_strdupv_printf (const char *format,
                     va_list     args);

DESCRIPTION

The bson_strdup() function shall return a copy of str.

The bson_strdup_printf() function shall return a new string with identical formatting requirements as printf(). The result should be freed with bson_free().

The bson_strdupv_printf() function is just like bson_strdup_printf() but takes a va_list.

RETURN VALUE

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

ERRORS

No errors are defined.

SEE ALSO

AUTHORS

This page was written by MongoDB, Inc.