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