home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD2.bin / bbs / gnu / emacs-19.28-src.lha / emacs-19.28 / unixlib / src / tmpnam.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-24  |  197 b   |  14 lines

  1. #include "amiga.h"
  2. #include <string.h>
  3. #include <stdio.h>
  4.  
  5. char *tmpnam(char *s)
  6. {
  7.   static char tmpbuf[L_tmpnam];
  8.  
  9.   if (!s) s = tmpbuf;
  10.  
  11.   strcpy(s, P_tmpdir "tmp_XXXXXX");
  12.   return mktemp(s);
  13. }
  14.