NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_CORE_TMP_H
24
#define MUTT_CORE_TMP_H
25
26
#include <stdio.h>
27
28
struct
Buffer
;
29
30
void
buf_mktemp_full
(
struct
Buffer
*buf,
const
char
*prefix,
const
char
*suffix,
const
char
*src,
int
line,
const
char
*cfg);
31
FILE *
mutt_file_mkstemp_full
(
const
char
*file,
int
line,
const
char
*func);
32
33
#define buf_mktemp(buf) buf_mktemp_full(buf, "neomutt", NULL, __FILE__, __LINE__, "tmp_dir")
34
#define buf_mktemp_draft(buf) buf_mktemp_full(buf, "neomutt", NULL, __FILE__, __LINE__, "tmp_draft_dir")
35
36
#define mutt_file_mkstemp() mutt_file_mkstemp_full(__FILE__, __LINE__, __func__)
37
38
#endif
/* MUTT_CORE_TMP_H */
Buffer
String manipulation buffer.
Definition
buffer.h:36
buf_mktemp_full
void buf_mktemp_full(struct Buffer *buf, const char *prefix, const char *suffix, const char *src, int line, const char *cfg)
Create a temporary file.
Definition
tmp.c:52
mutt_file_mkstemp_full
FILE * mutt_file_mkstemp_full(const char *file, int line, const char *func)
Create temporary file safely.
Definition
tmp.c:78