Bridge++
Ver. 2.0.2
file_utils.cpp
Go to the documentation of this file.
1
14
#include "
file_utils.h
"
15
16
//====================================================================
17
std::string
FileUtils::generate_filename
(
const
char
*fmt, ...)
18
{
19
static
const
int
buf_size = FILENAME_MAX;
20
static
char
buf[buf_size];
// not thread-safe.
21
22
va_list arg;
23
24
va_start(arg, fmt);
25
vsnprintf(buf, buf_size, fmt, arg);
26
va_end(arg);
27
28
return
std::string(buf);
29
}
30
31
32
//==========================================================
33
//==================================================END=====
file_utils.h
FileUtils::generate_filename
std::string generate_filename(const char *fmt,...)
Definition:
file_utils.cpp:17
src
lib
Tools
file_utils.cpp
Generated on Sat Feb 10 2024 14:20:00 for Bridge++ by
1.8.17