#include "printf.h" #include #include int vsprintf(TString& s, const char* c, va_list params) { TStringOutput so(s.remove()); return Printf(so, c, params); } int sprintf(TString& s, const char* c, ...) { va_list params; va_start(params, c); const int k = vsprintf(s, c, params); va_end(params); return k; } TString Sprintf(const char* c, ...) { TString s; va_list params; va_start(params, c); vsprintf(s, c, params); va_end(params); return s; } int fcat(TString& s, const char* c, ...) { TStringOutput so(s); va_list params; va_start(params, c); const size_t ret = Printf(so, c, params); va_end(params); return ret; }