X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fseq_print.c;h=7cd7c1a139e0bf1e22dd86b286f9cc1e0dac58eb;hp=3d97038066f6ea9ffaf277c9311ee2b1426f68de;hb=HEAD;hpb=5dd6771b28c257af405d7248639ed0e3bcdce38b diff --git a/sbr/seq_print.c b/sbr/seq_print.c index 3d97038..7cd7c1a 100644 --- a/sbr/seq_print.c +++ b/sbr/seq_print.c @@ -1,48 +1,48 @@ - /* - * seq_print.c -- Routines to print sequence information. - * - * 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_print.c -- Routines to print sequence information. +** +** 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 #define empty(s) ((s) ? (s) : "") /* - * Print all the sequences in a folder - */ +** Print all the sequences in a folder +*/ void -seq_printall (struct msgs *mp) +seq_printall(struct msgs *mp) { - int i; - char *list; - - for (i = 0; mp->msgattrs[i]; i++) { - list = seq_list (mp, mp->msgattrs[i]); - printf ("%s%s: %s\n", mp->msgattrs[i], - is_seq_private (mp, i) ? " (private)" : "", empty(list)); - } + int i; + char *list; + + for (i = 0; mp->msgattrs[i]; i++) { + list = seq_list(mp, mp->msgattrs[i]); + printf("%s%s: %s\n", mp->msgattrs[i], + is_seq_private(mp, i) ? " (private)" : "", + empty(list)); + } } /* - * Print a particular sequence in a folder - */ +** Print a particular sequence in a folder +*/ void -seq_print (struct msgs *mp, char *seqname) +seq_print(struct msgs *mp, char *seqname) { - int i; - char *list; + int i; + char *list; - /* get the index of sequence */ - i = seq_getnum (mp, seqname); + /* get the index of sequence */ + i = seq_getnum(mp, seqname); - /* get sequence information */ - list = seq_list (mp, seqname); + /* get sequence information */ + list = seq_list(mp, seqname); - printf ("%s%s: %s\n", seqname, - (i == -1) ? "" : is_seq_private(mp, i) ? " (private)" : "", empty(list)); + printf("%s%s: %s\n", seqname, (i == -1) ? "" : + is_seq_private(mp, i) ? " (private)" : "", empty(list)); }