X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fseq_bits.c;h=589bc03a0f438f75a9c15d4c0378881beae9e3f0;hp=56bd2ec18df4b11065098ecc50e2060bb42f0c62;hb=5cb46b33551f28e4168989e752e09bd927e993f9;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68 diff --git a/sbr/seq_bits.c b/sbr/seq_bits.c index 56bd2ec..589bc03 100644 --- a/sbr/seq_bits.c +++ b/sbr/seq_bits.c @@ -1,31 +1,28 @@ - /* - * seq_bits.c -- return the snprintb() string for a sequence - * - * $Id$ - * - * This code is Copyright (c) 2002, by the authors of nmh. See the - * COPYRIGHT file in the root directory of the nmh distribution for - * complete copyright information. - */ +** seq_bits.c -- return the snprintb() string for a sequence +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include char * -seq_bits (struct msgs *mp) +seq_bits(struct msgs *mp) { - int i; - size_t len; - static char buffer[BUFSIZ]; + int i; + size_t len; + static char buffer[BUFSIZ]; - strncpy (buffer, MBITS, sizeof(buffer)); + strncpy(buffer, MBITS, sizeof(buffer)); - for (i = 0; mp->msgattrs[i]; i++) { - len = strlen (buffer); - snprintf (buffer + len, sizeof(buffer) - len, - "%c%s", FFATTRSLOT + 1 + i, mp->msgattrs[i]); - } + for (i = 0; mp->msgattrs[i]; i++) { + len = strlen(buffer); + snprintf(buffer + len, sizeof(buffer) - len, + "%c%s", FFATTRSLOT + 1 + i, mp->msgattrs[i]); + } - return buffer; + return buffer; }