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