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[] = "@(#)linemod.c	5.2 (Berkeley) 4/30/85";
   9: #endif not lint
  10: 
  11: 
  12: #include "aed.h"
  13: 
  14: /*---------------------------------------------------------
  15:  *	Linemod sets the current line drawing style.
  16:  *
  17:  *	Results:	None.
  18:  *
  19:  *	Side Effects:
  20:  *	The AED line style is set based on string s which
  21:  *	must be one of "dotted", "solid", "longdashed", "shortdashed",
  22:  *	or "dotdashed".  If s isn't recognized, then "solid" is used.
  23:  *---------------------------------------------------------
  24:  */
  25: linemod(s)
  26: char *s;
  27: {
  28:     if (strcmp(s, "dotted") == 0)
  29:     fputs("1AAFF", stdout);
  30:     else if (strcmp(s, "longdashed") == 0)
  31:     fputs("1F055", stdout);
  32:     else if (strcmp(s, "shortdashed") == 0)
  33:     fputs("1F0FF", stdout);
  34:     else if (strcmp(s, "dotdashed") == 0)
  35:     fputs("1E4FF", stdout);
  36:     else fputs("1FFFF", stdout);
  37:     (void) fflush(stdout);
  38: }

Defined functions

linemod defined in line 25; never used

Defined variables

sccsid defined in line 8; never used
Last modified: 1987-02-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 463
Valid CSS Valid XHTML 1.0 Strict