|
|
1.1 ! root 1: /* m_name.c - return a message number as a string */ ! 2: ! 3: #include "../h/mh.h" ! 4: #include <stdio.h> ! 5: ! 6: ! 7: static char name[BUFSIZ]; ! 8: ! 9: char *m_name (num) ! 10: register int num; ! 11: { ! 12: if (num <= 0) ! 13: return "?"; ! 14: ! 15: (void) sprintf (name, "%d", num); ! 16: return name; ! 17: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.