[Bug 249025] description of scanf %u incorrectly says "optionally signed"

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


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

            Bug ID: 249025
           Summary: description of scanf %u incorrectly says "optionally
                    signed"
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Manual Pages
          Assignee: bugs at FreeBSD.org
          Reporter: wbe at psr.com
                CC: doc at FreeBSD.org

I believe the description of %u in man3/scanf.3, which says that %u matches an
OPTIONALLY SIGNED decimal integer, is incorrect.  If you agree, the following
"diff -u" 1-line patch to the man3/scanf.3 file from 12.1-RELEASE-p8 should fix
the problem.  If this error is in 12.1, it's probably in other versions of
FreeBSD as well.

<pre>

--- scanf.3~    2020-08-30 20:59:00.080775000 -0400
+++ scanf.3     2020-08-30 21:00:37.400650000 -0400
@@ -296,7 +296,7 @@
 the next pointer must be a pointer to
 .Vt "unsigned int" .
 .It Cm u
-Matches an optionally signed decimal integer;
+Matches an unsigned decimal integer;
 the next pointer must be a pointer to
 .Vt "unsigned int" .
 .It Cm x , X

</pre>

 -WBE

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list