3 * m_tmpfil.c -- construct a temporary file
7 * This code is Copyright (c) 2002, by the authors of nmh. See the
8 * COPYRIGHT file in the root directory of the nmh distribution for
9 * complete copyright information.
16 m_tmpfil (char *template)
18 static char tmpfil[BUFSIZ];
20 snprintf (tmpfil, sizeof(tmpfil), "/tmp/%sXXXXXX", template);
22 Mkstemp work postponed until later -Doug
24 unlink(mkstemp(tmpfil));
27 unlink(mktemp(tmpfil));