xref: /original-bsd/lib/libplot/aed/point.c (revision c3e32dec)
1 /*-
2  * Copyright (c) 1983, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.proprietary.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)point.c	8.1 (Berkeley) 06/04/93";
10 #endif /* not lint */
11 
12 #include "aed.h"
13 
14 /*---------------------------------------------------------
15  *	This routine plots a single point.
16  *
17  *	Results:	None.
18  *
19  *	Side Effects:
20  *	A single point is displayed on the screen.
21  *	The point is made the current point.
22  *---------------------------------------------------------
23  */
24 point(x, y)
25 int x, y;
26 {
27     setcolor("01");
28     putc('Q', stdout);
29     outxy20(x, y);
30     fputs("O01", stdout);
31     (void) fflush(stdout);
32     curx = x;
33     cury = y;
34 }
35