]> git.tdb.fi Git - gldbg.git/blob - source/strformat.cpp
Replace per-file license notices with License.txt
[gldbg.git] / source / strformat.cpp
1 #include <stdio.h>
2 #include <stdarg.h>
3 #include "strformat.h"
4
5 using namespace std;
6
7 string strformat(const char *fmt, ...)
8 {
9         va_list args;
10         va_start(args, fmt);
11         char buf[2048];
12         vsnprintf(buf, sizeof(buf), fmt, args);
13         va_end(args);
14         return buf;
15 }