Changeset 180 for cpp/common
- Timestamp:
- 03/18/14 09:11:39 (11 years ago)
- Location:
- cpp/common
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/framsg.cpp
r122 r180 5 5 #include "framsg.h" 6 6 #include <common/nonstd_stdio.h> 7 #include "stl-util.h" 7 8 #include "Convert.h" 8 9 … … 11 12 void FMprintf_va(const char *o,const char *m,int w,const char *bl,va_list va) 12 13 { 13 char buf[10000]; 14 vsnprintf(buf,10000,bl,va); 15 FramMessage(o,m,buf,w); 14 string buf=ssprintf_va(bl,va); 15 FramMessage(o,m,buf.c_str(),w); 16 16 } 17 17 -
cpp/common/stl-util.h
r140 r180 7 7 8 8 #include "nonstd_stl.h" 9 #include <stdarg.h> 9 10 10 11 template<typename T, std::size_t N> void push_back(vector<T>& v, T(&d)[N]) … … 37 38 38 39 string ssprintf(const char* format, ...); 40 string ssprintf_va(const char* format, va_list ap); 39 41 40 42 string stripExt(const string& filename); // strip extension from filename 43 string getFileExt(const string& filename); // get extension (starting with ".") from filename 41 44 42 45 bool readCompleteFile(const char* filename, vector<char>& data, bool warn_on_missing_file=true);
Note: See TracChangeset
for help on using the changeset viewer.