1: /*
   2:  * Copyright (c) 1980 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  */
   6: 
   7: #ifndef lint
   8: static char sccsid[] = "@(#)circle.c	5.2 (Berkeley) 4/30/85";
   9: #endif not lint
  10: 
  11: 
  12: #include "aed.h"
  13: 
  14: /*---------------------------------------------------------
  15:  *	Circle draws a circle.
  16:  *
  17:  *	Results:	None.
  18:  *
  19:  *	Side Effects:
  20:  *	A circle of radius r is drawn at (x,y).
  21:  *---------------------------------------------------------
  22:  */
  23: circle(x, y, r)
  24: int x, y, r;
  25: {
  26:     char buf[3];
  27:     setcolor("01");
  28:     putc('Q', stdout);
  29:     outxy20(x, y);
  30:     putc('O', stdout);
  31:     chex((r*scale)>>12, buf, 2);
  32:     fputs(buf, stdout);
  33:     (void) fflush(stdout);
  34: }

Defined functions

circle defined in line 23; never used

Defined variables

sccsid defined in line 8; never used
Last modified: 1985-05-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 880
Valid CSS Valid XHTML 1.0 Strict