Revision 12455,
291 bytes
checked in by danw, 26 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r12454,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | |
---|
2 | /* |
---|
3 | * m_name.c -- return a message number as a string |
---|
4 | * |
---|
5 | * $Id: m_name.c,v 1.1.1.1 1999-02-07 18:14:09 danw Exp $ |
---|
6 | */ |
---|
7 | |
---|
8 | #include <h/mh.h> |
---|
9 | |
---|
10 | static char name[BUFSIZ]; |
---|
11 | |
---|
12 | |
---|
13 | char * |
---|
14 | m_name (int num) |
---|
15 | { |
---|
16 | if (num <= 0) |
---|
17 | return "?"; |
---|
18 | |
---|
19 | snprintf (name, sizeof(name), "%d", num); |
---|
20 | return name; |
---|
21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.