|
|
1.1 ! root 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: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.