1: #ifndef lint
   2: static char sccsid[] = "@(#)line.c	5.2 (Berkeley) 6/6/85";
   3: #endif not lint
   4: 
   5: #include "aed.h"
   6: 
   7: /*---------------------------------------------------------
   8:  *	Line draws a line between two points.
   9:  *
  10:  *	Results:	None.
  11:  *
  12:  *	Side Effects:
  13:  *	A line is drawn on the screen between (x1, y1) and (x2, y2).
  14:  *---------------------------------------------------------
  15:  */
  16: line(x1, y1, x2, y2)
  17: int x1, y1, x2, y2;
  18: {
  19:     setcolor("01");
  20:     putc('Q', stdout);
  21:     outxy20(x1, y1);
  22:     putc('A', stdout);
  23:     outxy20(x2, y2);
  24:     (void) fflush(stdout);
  25:     curx = x2;
  26:     cury = y2;
  27: }

Defined functions

line defined in line 16; used 1 times

Defined variables

sccsid defined in line 2; never used
Last modified: 1985-06-07
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 710
Valid CSS Valid XHTML 1.0 Strict