summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/sscanf.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-04-17 20:53:24 +0000
committerJeff Johnston <jjohnstn@redhat.com>2007-04-17 20:53:24 +0000
commitfb5750bfb4c4ffd5ae839c416de192c8bc262b4b (patch)
tree0ca72fa8942e71dc545c18d5d77060f53cdefe34 /newlib/libc/stdio/sscanf.c
parent2351dd18b414d71a9306204e9eebf01f41289bbc (diff)
downloadcygnal-fb5750bfb4c4ffd5ae839c416de192c8bc262b4b.tar.gz
cygnal-fb5750bfb4c4ffd5ae839c416de192c8bc262b4b.tar.bz2
cygnal-fb5750bfb4c4ffd5ae839c416de192c8bc262b4b.zip
2007-04-17 Brian Dessent <brian@dessent.net>
* libc/stdio/sscanf.c: Update documentation comments. * libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
Diffstat (limited to 'newlib/libc/stdio/sscanf.c')
-rw-r--r--newlib/libc/stdio/sscanf.c24
1 files changed, 20 insertions, 4 deletions
diff --git a/newlib/libc/stdio/sscanf.c b/newlib/libc/stdio/sscanf.c
index 5ad39d8b7..b74dd3ebe 100644
--- a/newlib/libc/stdio/sscanf.c
+++ b/newlib/libc/stdio/sscanf.c
@@ -147,9 +147,9 @@ DESCRIPTION
Then <<scanf>> proceeds to the next format specification.
o size
- <<h>>, <<l>>, and <<L>> are optional size characters which
- override the default way that <<scanf>> interprets the
- data type of the corresponding argument.
+ <<h>>, <<j>>, <<l>>, <<L>>, <<t>>, and <<z>> are optional size
+ characters which override the default way that <<scanf>>
+ interprets the data type of the corresponding argument.
.Modifier Type(s)
@@ -162,6 +162,11 @@ DESCRIPTION
. h D, I, O, U, X no effect
. e, f, c, s, p
.
+. j d, i, o, u, x, n convert input to intmax_t,
+. store in intmax_t object
+.
+. j all others no effect
+.
. l d, i, o, u, x, n convert input to long,
. store in long object
.
@@ -180,7 +185,18 @@ DESCRIPTION
. L e, f, g, E, G convert to long double,
. store in long double
.
-. L all others no effect
+. L all others no effect
+.
+. t d, i, o, u, x, n convert input to ptrdiff_t,
+. store in ptrdiff_t object
+.
+. t all others no effect
+.
+. z d, i, o, u, x, n convert input to size_t,
+. store in size_t object
+.
+. z all others no effect
+.
o <[type]>