* docs/MAIL.FILTERING: added note on removing procmail -f or
[mmh] / sbr / m_name.c
1
2 /*
3  * m_name.c -- return a message number as a string
4  *
5  * $Id$
6  *
7  * This code is Copyright (c) 2002, by the authors of nmh.  See the
8  * COPYRIGHT file in the root directory of the nmh distribution for
9  * complete copyright information.
10  */
11
12 #include <h/mh.h>
13
14 static char name[BUFSIZ];
15
16
17 char *
18 m_name (int num)
19 {
20     if (num <= 0)
21         return "?";
22
23     snprintf (name, sizeof(name), "%d", num);
24     return name;
25 }