A safe version of sprintf.
| 32 | |
| 33 | /// A safe version of sprintf. |
| 34 | std::string |
| 35 | format(const char* format, ...) |
| 36 | { |
| 37 | va_list ap; |
| 38 | va_start(ap, format); |
| 39 | string s = vformat(format, ap); |
| 40 | va_end(ap); |
| 41 | return s; |
| 42 | } |
| 43 | |
| 44 | /// A safe version of vprintf. |
| 45 | string |
no test coverage detected