Annotation of 43BSD/contrib/mh/sbr/m_seqbits.c, revision 1.1

1.1     ! root        1: /* m_seqbits.c - return the sprintb() string for a sequence */
        !             2: 
        !             3: #include "../h/mh.h"
        !             4: #include <stdio.h>
        !             5: 
        !             6: 
        !             7: char   *m_seqbits (mp)
        !             8: register struct msgs *mp;
        !             9: {
        !            10:     int     bits;
        !            11:     register int    i;
        !            12:     static char buffer[BUFSIZ];
        !            13: 
        !            14:     bits = FFATTRSLOT;
        !            15:     (void) strcpy (buffer, MBITS);
        !            16:     for (i = 0; mp -> msgattrs[i]; i++)
        !            17:        (void) sprintf (buffer + strlen (buffer), "%c%s",
        !            18:                bits + i + 1, mp -> msgattrs[i]);
        !            19: 
        !            20:     return buffer;
        !            21: }

unix.superglobalmegacorp.com

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