summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/strtol.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdlib/strtol.3')
-rw-r--r--lib/libc/stdlib/strtol.310
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/stdlib/strtol.3 b/lib/libc/stdlib/strtol.3
index f994339..d01d8ee 100644
--- a/lib/libc/stdlib/strtol.3
+++ b/lib/libc/stdlib/strtol.3
@@ -149,10 +149,10 @@ or
function
returns the result of the conversion,
unless the value would underflow or overflow.
-If no conversion could be performed, 0 shall be returned and
+If no conversion could be performed, 0 is returned and
+the global variable
.Va errno
-will be
-set to
+is set to
.Er EINVAL .
If an underflow occurs,
.Fn strtol
@@ -177,7 +177,9 @@ is set to
.Sh ERRORS
.Bl -tag -width Er
.It Bq Er EINVAL
-The value of base is not supported or
+The value of
+.Fa base
+is not supported or
no conversion could be performed.
.It Bq Er ERANGE
The given string was out of range; the value converted has been clamped.
OpenPOWER on IntegriCloud