summaryrefslogtreecommitdiffstats
path: root/src/temp-stream.h
blob: 6c32e0c8d5ecac610bd05234a99eac4b8fa2770e (plain)
1
2
3
4
5
6
/* A wrapper around mkstemp that gives us both an open stream pointer,
   FP, and the corresponding FILE_NAME.  Always return the same FP/name
   pair, rewinding/truncating it upon each reuse.

   Note this honors $TMPDIR, unlike the standard defined tmpfile().  */
extern bool temp_stream (FILE **fp, char **file_name);