Bridge++
Version 1.5.4
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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=====
FileUtils::generate_filename
std::string generate_filename(const char *fmt,...)
Definition:
file_utils.cpp:17
file_utils.h
src
lib
Tools
file_utils.cpp
Generated on Thu Mar 19 2020 10:28:24 for Bridge++ by
1.8.6