xref: /csrg-svn/lib/libplot/grn/move.c (revision 61391)
148511Sbostic /*-
2*61391Sbostic  * Copyright (c) 1980, 1986, 1993
3*61391Sbostic  *	The Regents of the University of California.  All rights reserved.
448511Sbostic  *
548511Sbostic  * %sccs.include.proprietary.c%
629814Ssklower  */
729814Ssklower 
829814Ssklower #ifndef lint
9*61391Sbostic static char sccsid[] = "@(#)move.c	8.1 (Berkeley) 06/04/93";
1048511Sbostic #endif /* not lint */
1129814Ssklower 
1229814Ssklower #include "grnplot.h"
1329814Ssklower 
1429814Ssklower /*---------------------------------------------------------
1529814Ssklower  *	This routine moves the current point to (x,y).
1629814Ssklower  *
1729814Ssklower  *	Results:	None.
1829814Ssklower  *	Side Effects:	If current line, close it.
1929814Ssklower  *---------------------------------------------------------
2029814Ssklower  */
move(x,y)2129814Ssklower move(x, y)
2229814Ssklower int x, y;
2329814Ssklower {
2429814Ssklower 	if (!ingrnfile) erase();
2529814Ssklower     if (invector) endvector();
2629814Ssklower     curx = x;
2729814Ssklower     cury = y;
2829814Ssklower }
29