Annotation of 42BSD/usr.lib/libcurses/longname.c, revision 1.1

1.1     ! root        1: # define       reg     register
        !             2: 
        !             3: /*
        !             4:  *     This routine fills in "def" with the long name of the terminal.
        !             5:  *
        !             6:  * 1/26/81 (Berkeley) @(#)longname.c   1.1
        !             7:  */
        !             8: char *
        !             9: longname(bp, def)
        !            10: reg char       *bp, *def; {
        !            11: 
        !            12:        reg char        *cp;
        !            13: 
        !            14:        while (*bp && *bp != ':' && *bp != '|')
        !            15:                bp++;
        !            16:        if (*bp == '|') {
        !            17:                bp++;
        !            18:                cp = bp;
        !            19:                while (*cp && *cp != ':' && *cp != '|')
        !            20:                        cp++;
        !            21:                *cp = 0;
        !            22:                return bp;
        !            23:        }
        !            24:        return def;
        !            25: }

unix.superglobalmegacorp.com

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