aboutsummaryrefslogtreecommitdiff
path: root/src/libfmt/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libfmt/print.c')
-rw-r--r--src/libfmt/print.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libfmt/print.c b/src/libfmt/print.c
new file mode 100644
index 0000000..20b8e00
--- /dev/null
+++ b/src/libfmt/print.c
@@ -0,0 +1,13 @@
+#include "internal.h"
+
+int
+fmt·print(char *fmt, ...)
+{
+ int n;
+ va_list args;
+
+ va_start(args, fmt);
+ n = fmt·vfprint(1, fmt, args);
+ va_end(args);
+ return n;
+}