From 722e9f032d020596c742cc61dc8a5008f768c994 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Tue, 19 Dec 2023 13:23:14 +0100 Subject: strtol.3, strtoul.3: If the base is not supported, endptr may be left untouched Signed-off-by: Alejandro Colomar --- man3/strtol.3 | 3 +++ man3/strtoul.3 | 3 +++ 2 files changed, 6 insertions(+) diff --git a/man3/strtol.3 b/man3/strtol.3 index 8ea93cb59..c05eac0ec 100644 --- a/man3/strtol.3 +++ b/man3/strtol.3 @@ -71,6 +71,9 @@ forth, with \[aq]Z\[aq] representing 35.) If .I endptr is not NULL, +and the +.I base +is supported, .BR strtol () stores the address of the first invalid character in diff --git a/man3/strtoul.3 b/man3/strtoul.3 index 32bd36dfc..09b1a7cac 100644 --- a/man3/strtoul.3 +++ b/man3/strtoul.3 @@ -77,6 +77,9 @@ forth, with \[aq]Z\[aq] representing 35.) If .I endptr is not NULL, +and the +.I base +is supported, .BR strtoul () stores the address of the first invalid character in -- cgit v1.2.3