SYNOPSIS

#include <bson.h>

size_t
bson_uint32_to_string (uint32_t     value,
                       const char **strptr,
                       char        *str,
                       size_t       size);

DESCRIPTION

Converts value to a string.

If value is from 0 to 999, it will use a constant string in the data section of the library.

If not, a string will be formatted using str and a custom itoa().

strptr will always be set. It will either point to str or a constant string. You will want to use this as your key.

RETURNS

The length of the string

ERRORS

No errors are defined.

AUTHORS

This page was written by MongoDB, Inc.