diff options
author | max99x <max99x@gmail.com> | 2011-06-28 08:56:33 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-06-28 08:56:33 +0300 |
commit | 3a0e9450e8c4f3667477b3c77f3ebc9c429963e4 (patch) | |
tree | 0a3f350975d6e161a809b7c1a99f8d097d47c4da /tests/printf/test.c | |
parent | 26d16fbbca1de5f13306359bf78389adc438ba6b (diff) |
Added support for %n in _formatString/printf.
Diffstat (limited to 'tests/printf/test.c')
-rw-r--r-- | tests/printf/test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/printf/test.c b/tests/printf/test.c index ac662dca..e388ee9c 100644 --- a/tests/printf/test.c +++ b/tests/printf/test.c @@ -2,6 +2,9 @@ #include <math.h> int main() { + int x; + printf("ab%gc%nd\n", 1.23f, &x); + printf("n=%d\n", x); printf("\n"); printf("Characters: %c %c\n", 'a', 65); printf("Decimals: %d %ld %lld %d\n", 1977, 650000L, 12LL, 4); |