diff options
author | Alejandro Colomar <alx@kernel.org> | 2023-12-01 00:05:16 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-12-01 00:05:16 +0100 |
commit | 6b3b989bd81f42caf41d17728566a570da3bfaf6 (patch) | |
tree | 98f67b9aff5822faaa3921e464f9a513b70743dc /man3 | |
parent | 1db6c03d230d277d0053accbfaa073b6f7707c86 (diff) |
strtol.3, strtoul.3: ERRORS: Clarify that these don't set errno on success
That's a guarantee made by POSIX.
Reported-by: Jakub Wilk <jwilk@jwilk.net>
Cc: Florian Weimer <fweimer@redhat.com>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man3')
-rw-r--r-- | man3/strtol.3 | 3 | ||||
-rw-r--r-- | man3/strtoul.3 | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/man3/strtol.3 b/man3/strtol.3 index 01c658025..1f1f98216 100644 --- a/man3/strtol.3 +++ b/man3/strtol.3 @@ -124,6 +124,9 @@ instead of and .BR LONG_MAX ). .SH ERRORS +This function does not modify +.I errno +on success. .TP .B EINVAL (not in C99) diff --git a/man3/strtoul.3 b/man3/strtoul.3 index a01a1d8db..32bd36dfc 100644 --- a/man3/strtoul.3 +++ b/man3/strtoul.3 @@ -124,6 +124,9 @@ Precisely the same holds for instead of .BR ULONG_MAX ). .SH ERRORS +This function does not modify +.I errno +on success. .TP .B EINVAL (not in C99) |