mirror of https://github.com/mkerrisk/man-pages
Clarify treatment of intial white space by %% conversion specification.
as per http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=435648.
This commit is contained in:
parent
3f89dd3d82
commit
f9d17bc4fb
|
@ -47,7 +47,7 @@
|
|||
.\" Add ERRORS section.
|
||||
.\" Document the 'a' and 'm' modifiers for dynamic string allocation.
|
||||
.\"
|
||||
.TH SCANF 3 2008-06-23 "GNU" "Linux Programmer's Manual"
|
||||
.TH SCANF 3 2008-07-08 "GNU" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
scanf, fscanf, sscanf, vscanf, vsscanf, vfscanf \- input format conversion
|
||||
.SH SYNOPSIS
|
||||
|
@ -213,7 +213,7 @@ An optional decimal integer which specifies the
|
|||
.IR "maximum field width" .
|
||||
Reading of characters stops either when this maximum is reached or
|
||||
when a non-matching character is found, whichever happens first.
|
||||
Most conversions discard initial whitespace characters (the exceptions
|
||||
Most conversions discard initial white space characters (the exceptions
|
||||
are noted below),
|
||||
and these discarded characters don't count towards the maximum field width.
|
||||
String input conversions store a null terminator (\(aq\\0\(aq)
|
||||
|
@ -375,8 +375,8 @@ That is,
|
|||
.B %\&%
|
||||
in the format string matches a
|
||||
single input \(aq%\(aq character.
|
||||
No conversion is done, and assignment does not
|
||||
occur.
|
||||
No conversion is done (but initial white space characters are discarded),
|
||||
and assignment does not occur.
|
||||
.TP
|
||||
.B d
|
||||
Matches an optionally signed decimal integer;
|
||||
|
|
Loading…
Reference in New Issue