X-Git-Url: http://git.scottworley.com/overonion/blobdiff_plain/a3915755b9992783e291b8921497ab7075557011..2377b838ff45bc3407e0c65028eac858c47c9d4e:/temp_file.h?ds=inline diff --git a/temp_file.h b/temp_file.h new file mode 100644 index 0000000..d4fe41e --- /dev/null +++ b/temp_file.h @@ -0,0 +1,11 @@ +#ifndef _OVERONION_TEMP_FILE_H +#define _OVERONION_TEMP_FILE_H + +#include + +/* Create a temporary file in $TMPDIR, or /tmp if TMPDIR is not set. + * Caller must free temp_filename and fclose temp_file. Succeeds or terminates + * the process. */ +void make_temporary_file(char** temp_filename, FILE** temp_file); + +#endif /* _OVERONION_TEMP_FILE_H */