Mercurial > hg > Applications > mh
view sbr/m_tmpfil.c @ 0:bce86c4163a3
Initial revision
author | kono |
---|---|
date | Mon, 18 Apr 2005 23:46:02 +0900 |
parents | |
children |
line wrap: on
line source
/* 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; }