]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/strtoimax.3
fuse.4: fuse_entry_out: rework discussion of uniqueness of nodeid + generation
[thirdparty/man-pages.git] / man3 / strtoimax.3
CommitLineData
fea681da
MK
1.\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
2.\"
1dd72f9c 3.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
fea681da
MK
4.\" This is free documentation; you can redistribute it and/or
5.\" modify it under the terms of the GNU General Public License as
6.\" published by the Free Software Foundation; either version 2 of
7.\" the License, or (at your option) any later version.
8.\"
9.\" The GNU General Public License's references to "object code"
10.\" and "executables" are to be interpreted as the output of any
11.\" document formatting or typesetting system, including
12.\" intermediate and printed output.
13.\"
14.\" This manual is distributed in the hope that it will be useful,
15.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17.\" GNU General Public License for more details.
18.\"
19.\" You should have received a copy of the GNU General Public
c715f741
MK
20.\" License along with this manual; if not, see
21.\" <http://www.gnu.org/licenses/>.
6a8d8745 22.\" %%%LICENSE_END
fea681da 23.\"
460495ca 24.TH STRTOIMAX 3 2015-08-08 "" "Linux Programmer's Manual"
fea681da
MK
25.SH NAME
26strtoimax, strtoumax \- convert string to integer
27.SH SYNOPSIS
28.nf
29.B #include <inttypes.h>
30.sp
b9f02710 31.BI "intmax_t strtoimax(const char *" nptr ", char **" endptr ", int " base );
fea681da 32.br
c13182ef 33.BI "uintmax_t strtoumax(const char *" nptr ", char **" endptr ", int " base );
fea681da
MK
34.fi
35.SH DESCRIPTION
c13182ef 36These functions are just like
fb186734 37.BR strtol (3)
fea681da 38and
fb186734 39.BR strtoul (3),
fea681da 40except that they return a value of type
f19a0f03 41.I intmax_t
fea681da 42and
f19a0f03 43.IR uintmax_t ,
fea681da 44respectively.
47297adb 45.SH RETURN VALUE
fea681da
MK
46On success, the converted value is returned.
47If nothing was found to convert, zero is returned.
48On overflow or underflow
49.B INTMAX_MAX
50or
51.B INTMAX_MIN
52or
53.B UINTMAX_MAX
54is returned, and
55.I errno
56is set to
57.BR ERANGE .
88576984 58.SH ATTRIBUTES
d9ad96e4
PH
59For an explanation of the terms used in this section, see
60.BR attributes (7).
61.TS
62allbox;
63lbw24 lb lb
64l l l.
65Interface Attribute Value
66T{
67.BR strtoimax (),
88576984 68.BR strtoumax ()
d9ad96e4
PH
69T} Thread safety MT-Safe locale
70.TE
47297adb 71.SH CONFORMING TO
03bbb72e 72POSIX.1-2001, POSIX.1-2008, C99.
47297adb 73.SH SEE ALSO
fea681da
MK
74.BR imaxabs (3),
75.BR imaxdiv (3),
76.BR strtol (3),
77.BR strtoul (3),
78.BR wcstoimax (3)