4.4BSD/usr/src/contrib/mh-6.8/sbr/m_name.c

Compare this file to the similar file:
Show the results in this format:

/* m_name.c - return a message number as a string */

#include "../h/mh.h"
#include <stdio.h>


static char name[BUFSIZ];

char   *m_name (num)
register int     num;
{
    if (num <= 0)
	return "?";

    (void) sprintf (name, "%d", num);
    return name;
}