[Bug 249025] description of scanf %u incorrectly says "optionally signed" (patch included)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Aug 31 01:42:42 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249025

Hiroki Sato <hrs at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hrs at FreeBSD.org

--- Comment #1 from Hiroki Sato <hrs at FreeBSD.org> ---
(In reply to wbe from comment #0)

%u actually matches an optionally signed integer.  This means digits with "+"
or "-".  The value is casted to an unsigned type after the matching.  This
wording (and behavior) is the same as one in the specification.  I do not think
the current version is incorrect.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-doc mailing list