New: scanf documentation example
https://bugzilla.kernel.org/show_bug.cgi?id=43287
Summary: scanf documentation example
Product: Documentation
Version: unspecified
Kernel Version: n/a
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: man-pages
AssignedTo: documentation_man-pages-ztI5WcYan/[email protected]
ReportedBy: [email protected]
Regression: No
In scanf man file ( http://man7.org/linux/man-pages/man3/scanf.3.html ), in notes section an example given.
Example only works if it is compiled with -std=c89 option. It is not well defined. Probably because it was written long ago.
Signature · 7 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 43287] scanf documentation example
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=43287
Michael Kerrisk <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |[email protected]
Resolution| |INVALID
AssignedTo|documentation_man-pages@ker |[email protected]
|nel-bugs.osdl.org |--- Comment #1 from Michael Kerrisk <[email protected]> 2012-12-21 16:58:31 --- The man page already explains this quite clearly though:
The a modifier is not available if the program is compiled with gcc -std=c99 or gcc -D_ISOC99_SOURCE (unless _GNU_SOURCE is also specified), in which case the a is interpreted as a speci‐ fier for floating-point numbers (see above).
So, closing this bug.
Thanks,
Michael
Signature · 6 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.-- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html