Date: Mon, 31 Aug 2020 01:26:03 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 249025] description of scanf %u incorrectly says "optionally signed" Message-ID: <bug-249025-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
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@FreeBSD.org Reporter: wbe@psr.com CC: doc@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.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-249025-227>
