Annotation of 43BSD/contrib/mh/sbr/m_tmpfil.c, revision 1.1.1.1

1.1       root        1: /* m_tmpfil.c - construct a temporary file */
                      2: 
                      3: #include "../h/mh.h"
                      4: #include <stdio.h>
                      5: 
                      6: 
                      7: char   *m_tmpfil (template)
                      8: register char  *template;
                      9: {
                     10:     static char tmpfil[BUFSIZ];
                     11: 
                     12:     (void) sprintf (tmpfil, "/tmp/%sXXXXXX", template);
                     13:     (void) unlink (mktemp (tmpfil));
                     14: 
                     15:     return tmpfil;
                     16: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.