|
|
BSD 4.3
/* m_tmpfil.c - construct a temporary file */
#include "../h/mh.h"
#include <stdio.h>
char *m_tmpfil (template)
register char *template;
{
static char tmpfil[BUFSIZ];
(void) sprintf (tmpfil, "/tmp/%sXXXXXX", template);
(void) unlink (mktemp (tmpfil));
return tmpfil;
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.