diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2001-09-11 09:39:23 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2001-09-11 09:39:23 +0000 |
| commit | 8fc5ce4d99e3ec8e9d7591a23c14ab66544767cf (patch) | |
| tree | c9c5183e585a56e4ffcfcf7c153a4913f3e41590 /lib/libc/stdlib | |
| parent | 9cbf4a2152d082890b10e678b9a747792501fea9 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdlib')
| -rw-r--r-- | lib/libc/stdlib/strtol.3 | 10 | ||||
| -rw-r--r-- | lib/libc/stdlib/strtoul.3 | 10 |
2 files changed, 12 insertions, 8 deletions
diff --git a/lib/libc/stdlib/strtol.3 b/lib/libc/stdlib/strtol.3 index f9943399f5c1..d01d8ee28c61 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. diff --git a/lib/libc/stdlib/strtoul.3 b/lib/libc/stdlib/strtoul.3 index 4358f09c18f5..ff60016d0f44 100644 --- a/lib/libc/stdlib/strtoul.3 +++ b/lib/libc/stdlib/strtoul.3 @@ -164,15 +164,17 @@ In all cases, .Va errno is set to .Er ERANGE . -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 . .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. |
