home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume17
/
e2
/
part01
/
get_temp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-02-08
|
338b
|
21 lines
#include "e.h"
/*
* get_temp()
*
* Get ourselves a temporary file for the new history.
*
*/
void
get_temp()
{
if (mktemp(tmp_file) != tmp_file){
e_error("Could not mktemp.");
}
if ((tmp_fp = fopen(tmp_file, "w")) == NULL){
e_error("Could not open temporary file '%s'.", tmp_file);
}
return;
}