X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fseq_bits.c;h=3d52ed502c8d73c4bedbc78f70e4742b941bc1a4;hp=56bd2ec18df4b11065098ecc50e2060bb42f0c62;hb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68 diff --git a/sbr/seq_bits.c b/sbr/seq_bits.c index 56bd2ec..3d52ed5 100644 --- a/sbr/seq_bits.c +++ b/sbr/seq_bits.c @@ -1,13 +1,10 @@ - /* - * 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 @@ -15,17 +12,17 @@ char * 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; }