aboutsummaryrefslogtreecommitdiff
path: root/src/libdraw
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-06-25 23:52:51 +0000
committerrsc <devnull@localhost>2006-06-25 23:52:51 +0000
commit8159666d6abbe11749ac45a52bb0192663849b73 (patch)
tree650a45ccf6a60c5033748e17c224e4b7a29b7e90 /src/libdraw
parente074ed0d7e7c45a087f745709818b026dcbe2ee0 (diff)
downloadplan9port-8159666d6abbe11749ac45a52bb0192663849b73.tar.gz
plan9port-8159666d6abbe11749ac45a52bb0192663849b73.tar.bz2
plan9port-8159666d6abbe11749ac45a52bb0192663849b73.zip
add iprint
Diffstat (limited to 'src/libdraw')
-rw-r--r--src/libdraw/iprint.c14
-rw-r--r--src/libdraw/mkfile1
2 files changed, 15 insertions, 0 deletions
diff --git a/src/libdraw/iprint.c b/src/libdraw/iprint.c
new file mode 100644
index 00000000..206044e7
--- /dev/null
+++ b/src/libdraw/iprint.c
@@ -0,0 +1,14 @@
+#include <u.h>
+#include <libc.h>
+#include <draw.h>
+
+int
+iprint(char *fmt, ...)
+{
+ va_list arg;
+
+ va_start(arg, fmt);
+ vfprint(1, fmt, arg);
+ va_end(arg);
+ return 0;
+}
diff --git a/src/libdraw/mkfile b/src/libdraw/mkfile
index a4b8100a..ddb0e833 100644
--- a/src/libdraw/mkfile
+++ b/src/libdraw/mkfile
@@ -32,6 +32,7 @@ OFILES=\
icossin.$O\
icossin2.$O\
init.$O\
+ iprint.$O\
keyboard.$O\
line.$O\
loadimage.$O\