date and time created 83/06/27 14:26:15 by sam
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Tue, 28 Jun 1983 05:26:15 +0000 (21:26 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Tue, 28 Jun 1983 05:26:15 +0000 (21:26 -0800)
SCCS-vsn: lib/libplot/vt0/line.c 4.1

usr/src/lib/libplot/vt0/line.c [new file with mode: 0644]

diff --git a/usr/src/lib/libplot/vt0/line.c b/usr/src/lib/libplot/vt0/line.c
new file mode 100644 (file)
index 0000000..ffd9bf3
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef lint
+static char sccsid[] = "@(#)line.c     4.1 (Berkeley) %G%";
+#endif
+
+extern vti;
+extern xnow,ynow;
+line(x0,y0,x1,y1){
+       struct{char x,c; int x0,y0,x1,y1;} p;
+       p.c = 3;
+       p.x0 = xsc(x0);
+       p.y0 = ysc(y0);
+       p.x1 = xnow = xsc(x1);
+       p.y1 = ynow = ysc(y1);
+       write(vti,&p.c,9);
+}
+cont(x0,y0){
+       line(xnow,ynow,xsc(x0),ysc(y0));
+       return;
+}