Annotation of 43BSDReno/lib/libplot/aed/linemod.c, revision 1.1

1.1     ! root        1: #ifndef lint
        !             2: static char sccsid[] = "@(#)linemod.c  4.1 (Berkeley) 11/11/83";
        !             3: #endif
        !             4: 
        !             5: #include "aed.h"
        !             6: 
        !             7: /*---------------------------------------------------------
        !             8:  *     Linemod sets the current line drawing style.
        !             9:  *
        !            10:  *     Results:        None.
        !            11:  *
        !            12:  *     Side Effects:
        !            13:  *     The AED line style is set based on string s which
        !            14:  *     must be one of "dotted", "solid", "longdashed", "shortdashed",
        !            15:  *     or "dotdashed".  If s isn't recognized, then "solid" is used.
        !            16:  *---------------------------------------------------------
        !            17:  */
        !            18: linemod(s)
        !            19: char *s;
        !            20: {
        !            21:     if (strcmp(s, "dotted") == 0)
        !            22:        fputs("1AAFF", stdout);
        !            23:     else if (strcmp(s, "longdashed") == 0)
        !            24:        fputs("1F055", stdout);
        !            25:     else if (strcmp(s, "shortdashed") == 0)
        !            26:        fputs("1F0FF", stdout);
        !            27:     else if (strcmp(s, "dotdashed") == 0)
        !            28:        fputs("1E4FF", stdout);
        !            29:     else fputs("1FFFF", stdout);
        !            30:     (void) fflush(stdout);
        !            31: }

unix.superglobalmegacorp.com

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