SRI-NOSC/mh/subs.dir/m_name.c

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

#include "/m/mh/mh.h"
struct msgs *mp;
m_name(num)
{
	static char name[4];
	register char *cp;
	register int i;

	name[0] = 0;
	name[1] = 0;
	name[2] = 0;
	name[3] = 0;
	i = num;
	cp = &name[3];
	if(i > 0 && i < 1000) {
		do {
			*--cp = (i % 10) + '0';
			i =/ 10;
		} while(i);
		if(( mp->msgstats[num]&EXISTS) && ( mp->msgstats[num]&DELETED))
			*--cp = ',';
	} else
		*--cp = '?';
	return(cp);
}