diff options
Diffstat (limited to 'wsutil/tempfile.h')
-rw-r--r-- | wsutil/tempfile.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/wsutil/tempfile.h b/wsutil/tempfile.h index f595632f25..1dca2dfa13 100644 --- a/wsutil/tempfile.h +++ b/wsutil/tempfile.h @@ -50,9 +50,11 @@ WS_DLL_PUBLIC char *get_tempfile_path(const char *filename); * @param namebuf [in,out] If not NULL, receives the full path of the temp file. * Must NOT be freed. * @param pfx [in] A prefix for the temporary file. - * @return The file descriptor of the new tempfile, from mkstemp(). + * @param sfx [in] A file extension for the temporary file. NULL can be passed + * if no file extension is needed + * @return The file descriptor of the new tempfile, from mkstemps(). */ -WS_DLL_PUBLIC int create_tempfile(char **namebuf, const char *pfx); +WS_DLL_PUBLIC int create_tempfile(char **namebuf, const char *pfx, const char *sfx); /** * Create a directory with the given prefix (e.g. "wireshark"). The path |