.\" Man page generated from reStructuredText. . .TH "BSON_ASCII_STRTOLL" "3" "Jun 04, 2021" "1.17.6" "libbson" .SH NAME bson_ascii_strtoll \- bson_ascii_strtoll() . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C int64_t bson_ascii_strtoll (const char *str, char **endptr, int base); .ft P .fi .UNINDENT .UNINDENT .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBstr\fP: The string to convert. .IP \(bu 2 \fBendptr\fP: Address of the first invalid character of \fBstr\fP, or null. .IP \(bu 2 \fBbase\fP: The base to use for the conversion. .UNINDENT .SH DESCRIPTION .sp A portable version of \fBstrtoll()\fP\&. .sp Converts a string to a 64\-bit signed integer according to the given \fBbase\fP, which must be 16, 10, or 8. Leading whitespace will be ignored. .sp If base is 0 is passed in, the base is inferred from the string\(aqs leading 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. .sp If \fBendptr\fP is not NULL, it will be assigned the address of the first invalid character of \fBstr\fP, or its null terminating byte if the entire string was valid. .sp 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. .SH RETURNS .sp The result of the conversion. .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .