diff options
author | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-06-22 20:40:07 +0000 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-06-22 20:40:07 +0000 |
commit | 097585edcb910d46ea15fd40c9753dfd9d150e97 (patch) | |
tree | 727b421be423fff8355c22616bf7dcc58ec73e71 /man3/strtol.3 | |
parent | 2f0af33ba65b9acc67dc3fcdbb8b123af932a477 (diff) |
ffix
Diffstat (limited to 'man3/strtol.3')
-rw-r--r-- | man3/strtol.3 | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/man3/strtol.3 b/man3/strtol.3 index e55012b16..29e04cb36 100644 --- a/man3/strtol.3 +++ b/man3/strtol.3 @@ -88,15 +88,24 @@ function returns the result of the conversion, unless the value would underflow or overflow. If an underflow occurs, .BR strtol () -returns LONG_MIN. +returns +.BR LONG_MIN . If an overflow occurs, .BR strtol () -returns LONG_MAX. +returns +.BR LONG_MAX . In both cases, \fIerrno\fP is set to .BR ERANGE . Precisely the same holds for .BR strtoll () -(with LLONG_MIN and LLONG_MAX instead of LONG_MIN and LONG_MAX). +(with +.B LLONG_MIN +and +.B LLONG_MAX +instead of +.B LONG_MIN +and +.BR LONG_MAX ). .SH ERRORS .TP .B EINVAL @@ -119,7 +128,13 @@ to C99 and POSIX.1-2001. Since .BR strtol () can legitimately return 0, -LONG_MAX, or LONG_MIN (LLONG_MAX or LLONG_MIN for +.BR LONG_MAX , +or +.B LONG_MIN +.RB ( LLONG_MAX +or +.B LLONG_MIN +for .BR strtoll ()) on both success and failure, the calling program should set .I errno |