Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
BSON_STRING_NEW(3)		    libbson		    BSON_STRING_NEW(3)

WARNING:
	  Deprecated since version 1.29.0.

SYNOPSIS
	  bson_string_t	*
	  bson_string_new (const char *str);

PARAMETERS
        str: A	string to be copied or NULL.

DESCRIPTION
       Creates	a  new	string	builder,  which	 uses  power-of-two  growth of
       buffers.	Use the	various	bson_string_append*() functions	to  append  to
       the string.

       WARNING:
	  The  length  of the resulting	string (including the NULL terminator)
	  MUST NOT exceed UINT32_MAX.

RETURNS
       A  newly	 allocated   bson_string_t   that   should   be	  freed	  with
       bson_string_free() when no longer in use.

AUTHOR
       MongoDB,	Inc

COPYRIGHT
       2009-present, MongoDB, Inc.

1.30.2				 Apr 12, 2025		    BSON_STRING_NEW(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=bson_string_new&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help