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

FreeBSD Manual Pages

  
 
  

home | help
BSON_ASCII_STRTOLL(3)		    libbson		 BSON_ASCII_STRTOLL(3)

SYNOPSIS
	  int64_t
	  bson_ascii_strtoll (const char *str, char **endptr, int base);

PARAMETERS
        str: The string to convert.

        endptr: Address of the	first invalid character	of str,	or null.

        base: The base	to use for the conversion.

DESCRIPTION
       A portable version of strtoll().

       Converts	 a  string  to	a 64-bit signed	integer	according to the given
       base, which must	be 16, 10, or 8. Leading whitespace will be ignored.

       If base is 0 is passed in, the base is inferred from the	string's lead-
       ing characters. Base-16 numbers start with "0x" or "0X",	base-8 numbers
       start with "0", base-10 numbers start with a digit from 1 to 9.

       If endptr is not	NULL, it will be assigned the address of the first in-
       valid character of str, or its null  terminating	 byte  if  the	entire
       string was valid.

       If  an  invalid	value  is encountered, errno will be set to EINVAL and
       zero will be returned. If the number is out of range, errno is  set  to
       ERANGE and LLONG_MAX or LLONG_MIN is returned.

RETURNS
       The result of the conversion.

AUTHOR
       MongoDB,	Inc

COPYRIGHT
       2009-present, MongoDB, Inc.

1.30.2				 Apr 12, 2025		 BSON_ASCII_STRTOLL(3)

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

home | help