]>
diplodocus.org Git - nmh/blob - sbr/m_tmpfil.c
3 * m_tmpfil.c -- construct a temporary file
12 m_tmpfil (char *template)
14 static char tmpfil
[BUFSIZ
];
16 snprintf (tmpfil
, sizeof(tmpfil
), "/tmp/%sXXXXXX", template);
18 Mkstemp work postponed until later -Doug
20 unlink(mkstemp(tmpfil));
23 unlink(mktemp(tmpfil
));