File:  [CSRG BSD Unix] / 43BSD / contrib / mh / sbr / m_seqbits.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:54 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

/* m_seqbits.c - return the sprintb() string for a sequence */

#include "../h/mh.h"
#include <stdio.h>


char   *m_seqbits (mp)
register struct msgs *mp;
{
    int     bits;
    register int    i;
    static char buffer[BUFSIZ];

    bits = FFATTRSLOT;
    (void) strcpy (buffer, MBITS);
    for (i = 0; mp -> msgattrs[i]; i++)
	(void) sprintf (buffer + strlen (buffer), "%c%s",
		bits + i + 1, mp -> msgattrs[i]);

    return buffer;
}

unix.superglobalmegacorp.com

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