Re: [PATCH v4 1/2] man/man3/strto[u]l.3: BUGS: Signed numbers and white space are not rejected

Bruno Haible
2025-03-23T19:32:06Z

Alejandro Colomar wrote:
> diff --git a/man/man3/strtoul.3 b/man/man3/strtoul.3
> index c6a2bb9be..4e85f7a30 100644
> --- a/man/man3/strtoul.3
> +++ b/man/man3/strtoul.3
> @@ -182,7 +187,7 @@ .SH VERSIONS
> or to
> .BR strtoul ().
> .SH STANDARDS
> -C11, POSIX.1-2008.
> +C23, POSIX.1-2008.
> .SH HISTORY
> .TP
> .BR strtoul ()
> @@ -190,6 +195,10 @@ .SH HISTORY
> .TP
> .BR strtoull ()
> POSIX.1-2001, C99.
> +.TP
> +"0b", "0B"
> +C23.
> +glibc 2.38.
> .SH CAVEATS
> Since
> .BR strtoul ()

These same two hunks could also be applied to strtol.3.

Bruno