aboutsummaryrefslogtreecommitdiff
path: root/testdir/t.printf2
diff options
context:
space:
mode:
Diffstat (limited to 'testdir/t.printf2')
-rw-r--r--testdir/t.printf26
1 files changed, 6 insertions, 0 deletions
diff --git a/testdir/t.printf2 b/testdir/t.printf2
new file mode 100644
index 0000000..8e71232
--- /dev/null
+++ b/testdir/t.printf2
@@ -0,0 +1,6 @@
+{
+ printf "%%: %s ... %s \t", $2, $1
+ x = sprintf("%8d %10.10s %u %o %x", $1, $2, $3, $3, $3*$4)
+ x = x sprintf(" %c %c", $1, $2)
+ print x
+}