.\" 386BSD man pages
.\" Modified Sun Jul 25 10:53:39 1993 by Rik Faith (faith@cs.unc.edu)
.\" Added correction due to nsd@bbc.com (Nick Duffek) - aeb, 950610
-.TH STRTOL 3 2013-02-10 "GNU" "Linux Programmer's Manual"
+.TH STRTOL 3 2014-03-18 "GNU" "Linux Programmer's Manual"
.SH NAME
strtol, strtoll, strtoq \- convert a string to a long integer
.SH SYNOPSIS
in the obvious manner, stopping at the first character which is not a
valid digit in the given base.
(In bases above 10, the letter \(aqA\(aq in
-either upper or lower case represents 10, \(aqB\(aq represents 11, and so
+either uppercase or lowercase represents 10, \(aqB\(aq represents 11, and so
forth, with \(aqZ\(aq representing 35.)
.PP
If
.B EINVAL
in case
no conversion was performed (no digits seen, and 0 returned).
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR strtol (),
+.BR strtoll (),
+and
+.BR strtoq ()
+functions are thread-safe with exceptions.
+These functions can be safely used in multithreaded applications,
+as long as
+.BR setlocale (3)
+is not called to change the locale during their execution.
.SH CONFORMING TO
.BR strtol ()
-conforms to SVr4, 4.3BSD, C89, C99 and POSIX.1-2001, and
+conforms to SVr4, 4.3BSD, C89, C99, and POSIX.1-2001, and
.BR strtoll ()
to C99 and POSIX.1-2001.
.SH NOTES