1
#if !defined(lint) && !defined(DOS)
2
static char rcsid[] = "$Id: tempfile.c 229 2006-11-13 23:14:48Z hubert@u.washington.edu $";
6
* ========================================================================
7
* Copyright 2006 University of Washington
9
* Licensed under the Apache License, Version 2.0 (the "License");
10
* you may not use this file except in compliance with the License.
11
* You may obtain a copy of the License at
13
* http://www.apache.org/licenses/LICENSE-2.0
15
* ========================================================================
25
#include "../charconv/filesys.h"
30
/*----------------------------------------------------------------------
31
Create a temporary file, the name of which we don't care about
32
and that goes away when it is closed. Just like ANSI C tmpfile.
43
file_name = temp_nam(NULL, "pine-tmp", 0);
44
stream = our_fopen(file_name, "w+b");
45
our_unlink(file_name);