Annotation of 43BSDTahoe/usr.lib/libplot/aed/linemod.c, revision 1.1.1.1

1.1       root        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: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.