3 * seq_print.c -- Routines to print sequence information.
10 #define empty(s) ((s) ? (s) : "")
13 * Print all the sequences in a folder
16 seq_printall (struct msgs *mp)
21 for (i = 0; mp->msgattrs[i]; i++) {
22 list = seq_list (mp, mp->msgattrs[i]);
23 printf ("%s%s: %s\n", mp->msgattrs[i],
24 is_seq_private (mp, i) ? " (private)" : "", empty(list));
30 * Print a particular sequence in a folder
33 seq_print (struct msgs *mp, char *seqname)
38 /* get the index of sequence */
39 i = seq_getnum (mp, seqname);
41 /* get sequence information */
42 list = seq_list (mp, seqname);
44 printf ("%s%s: %s\n", seqname,
45 (i == -1) ? "" : is_seq_private(mp, i) ? " (private)" : "", empty(list));