xref: /original-bsd/lib/libplot/grn/line.c (revision 1a56dd2c)
1 /*
2  * Copyright (c) 1986 Regents of the University of California.
3  * All rights reserved.  The Berkeley software License Agreement
4  * specifies the terms and conditions for redistribution.
5  */
6 
7 #ifndef lint
8 static char sccsid[] = "@(#)line.c	6.1 (Berkeley) 08/29/86";
9 #endif not lint
10 
11 #include "grnplot.h"
12 
13 /*---------------------------------------------------------
14  *	Line draws a line between two points.
15  *
16  *	Results:	None.
17  *
18  *	Side Effects:
19  *	A line is drawn on the screen between (x1, y1) and (x2, y2).
20  *---------------------------------------------------------
21  */
22 line(x1, y1, x2, y2)
23 int x1, y1, x2, y2;
24 {
25 	move(x1,y1);
26 	cont(x2,y2);
27 }
28