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