]> Savannah Git Hosting - gnulib.git/commitdiff
doc: mention strtol no-conversion + EINVAL
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Nov 2024 17:11:22 +0000 (09:11 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Nov 2024 17:12:17 +0000 (09:12 -0800)
doc/posix-functions/strtod.texi
doc/posix-functions/strtof.texi
doc/posix-functions/strtoimax.texi
doc/posix-functions/strtol.texi
doc/posix-functions/strtold.texi
doc/posix-functions/strtoll.texi
doc/posix-functions/strtoul.texi
doc/posix-functions/strtoull.texi
doc/posix-functions/strtoumax.texi

index 7a234eac88b9cb4ee728775801f73994fb9c3a1e..c929fa863911b432ef08541028945d02743642f9 100644 (file)
@@ -103,4 +103,10 @@ MSVC 14.
 
 @item
 The replacement function does not always return correctly rounded results.
+
+@item
+If no conversion could be performed, this function sets @code{errno}
+to @code{EINVAL} on some platforms.  Portable programs should check
+for no conversion by comparing @code{str} to @code{*endptr}, not by
+inspecting @code{errno}.
 @end itemize
index a28625236f11a1c79e37a3fac62bcbbd118b20ac..f1675d8087c539caa88d22c56fdfd1e1662fbfda 100644 (file)
@@ -62,4 +62,10 @@ MSVC 14.
 
 @item
 The replacement function does not always return correctly rounded results.
+
+@item
+If no conversion could be performed, this function sets @code{errno}
+to @code{EINVAL} on some platforms.  Portable programs should check
+for no conversion by comparing @code{str} to @code{*endptr}, not by
+inspecting @code{errno}.
 @end itemize
index a78268579952fd931485868a9737827e387e0a83..bd7a27d4c4cde30cc745e09eb5433a88695a44d9 100644 (file)
@@ -22,4 +22,9 @@ Portability problems not fixed by Gnulib:
 @item
 This function is only defined as a macro on some platforms:
 HP-UX 11.11.
+@item
+If no conversion could be performed, this function sets @code{errno}
+to @code{EINVAL} on some platforms.  Portable programs should check
+for no conversion by comparing @code{str} to @code{*endptr}, not by
+inspecting @code{errno}.
 @end itemize
index c714f69a22dba02be4d858915ab800ce6be54f6c..32a3e3b12dc219d79dce132325916bb7c4503dff 100644 (file)
@@ -22,4 +22,9 @@ prefix) when the base is 2 or 0 on many platforms.
 
 Portability problems not fixed by Gnulib:
 @itemize
+@item
+If no conversion could be performed, this function sets @code{errno}
+to @code{EINVAL} on some platforms.  Portable programs should check
+for no conversion by comparing @code{str} to @code{*endptr}, not by
+inspecting @code{errno}.
 @end itemize
index 5756933c5ec7dd106dd36bd37756a13076bf34b4..555c78e95583edaec3936f26fc0b8fc73ab46a24 100644 (file)
@@ -81,4 +81,10 @@ MSVC 14.
 
 @item
 The replacement function does not always return correctly rounded results.
+
+@item
+If no conversion could be performed, this function sets @code{errno}
+to @code{EINVAL} on some platforms.  Portable programs should check
+for no conversion by comparing @code{str} to @code{*endptr}, not by
+inspecting @code{errno}.
 @end itemize
index 52852895f9a69f660a1c1bab39259b63f6190ba4..cabd01b4266a2aff89e14a31e1faf9dbcdf41ad5 100644 (file)
@@ -23,4 +23,9 @@ prefix) when the base is 2 or 0 on many platforms.
 
 Portability problems not fixed by Gnulib:
 @itemize
+@item
+If no conversion could be performed, this function sets @code{errno}
+to @code{EINVAL} on some platforms.  Portable programs should check
+for no conversion by comparing @code{str} to @code{*endptr}, not by
+inspecting @code{errno}.
 @end itemize
index 6b8e42957ebf46b21f3c65cac983ab3e2df529f7..049cb2cf6f5d260a65e37a243b8ae94c9c2948fc 100644 (file)
@@ -22,4 +22,9 @@ prefix) when the base is 2 or 0 on many platforms.
 
 Portability problems not fixed by Gnulib:
 @itemize
+@item
+If no conversion could be performed, this function sets @code{errno}
+to @code{EINVAL} on some platforms.  Portable programs should check
+for no conversion by comparing @code{str} to @code{*endptr}, not by
+inspecting @code{errno}.
 @end itemize
index dfd14e1ae8d878509389350564e2b2ab98f2f998..03e99574c4a4554489dcad40f5acbaa3b7444209 100644 (file)
@@ -23,4 +23,9 @@ prefix) when the base is 2 or 0 on many platforms.
 
 Portability problems not fixed by Gnulib:
 @itemize
+@item
+If no conversion could be performed, this function sets @code{errno}
+to @code{EINVAL} on some platforms.  Portable programs should check
+for no conversion by comparing @code{str} to @code{*endptr}, not by
+inspecting @code{errno}.
 @end itemize
index 11d5b44c292b27335c31b15717d1d0f97d32a4c9..d348a16b4822fe99dbbe0991d67e31d29107240c 100644 (file)
@@ -19,4 +19,9 @@ Portability problems not fixed by Gnulib:
 @item
 This function is only defined as a macro on some platforms:
 HP-UX 11.11.
+@item
+If no conversion could be performed, this function sets @code{errno}
+to @code{EINVAL} on some platforms.  Portable programs should check
+for no conversion by comparing @code{str} to @code{*endptr}, not by
+inspecting @code{errno}.
 @end itemize