xref: /csrg-svn/lib/libplot/grn/move.c (revision 29814)
1*29814Ssklower /*
2*29814Ssklower  * Copyright (c) 1980, 1986 Regents of the University of California.
3*29814Ssklower  * All rights reserved.  The Berkeley software License Agreement
4*29814Ssklower  * specifies the terms and conditions for redistribution.
5*29814Ssklower  */
6*29814Ssklower 
7*29814Ssklower #ifndef lint
8*29814Ssklower static char sccsid[] = "@(#)move.c	6.1 (Berkeley) 08/29/86";
9*29814Ssklower #endif not lint
10*29814Ssklower 
11*29814Ssklower 
12*29814Ssklower #include "grnplot.h"
13*29814Ssklower 
14*29814Ssklower /*---------------------------------------------------------
15*29814Ssklower  *	This routine moves the current point to (x,y).
16*29814Ssklower  *
17*29814Ssklower  *	Results:	None.
18*29814Ssklower  *	Side Effects:	If current line, close it.
19*29814Ssklower  *---------------------------------------------------------
20*29814Ssklower  */
21*29814Ssklower move(x, y)
22*29814Ssklower int x, y;
23*29814Ssklower {
24*29814Ssklower 	if (!ingrnfile) erase();
25*29814Ssklower     if (invector) endvector();
26*29814Ssklower     curx = x;
27*29814Ssklower     cury = y;
28*29814Ssklower }
29