23#ifndef MUTT_CORE_TMP_H
24#define MUTT_CORE_TMP_H
30void buf_mktemp_full(
struct Buffer *buf,
const char *prefix,
const char *suffix,
const char *src,
int line);
33#define buf_mktemp(buf) buf_mktemp_pfx_sfx(buf, "neomutt", NULL)
34#define buf_mktemp_pfx_sfx(buf, prefix, suffix) buf_mktemp_full(buf, prefix, suffix, __FILE__, __LINE__)
36#define mutt_file_mkstemp() mutt_file_mkstemp_full(__FILE__, __LINE__, __func__)
String manipulation buffer.
FILE * mutt_file_mkstemp_full(const char *file, int line, const char *func)
Create temporary file safely.
void buf_mktemp_full(struct Buffer *buf, const char *prefix, const char *suffix, const char *src, int line)
Create a temporary file.