diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/string/printf.cpp | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'util/string/printf.cpp')
-rw-r--r-- | util/string/printf.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/util/string/printf.cpp b/util/string/printf.cpp index 6b49d80a9c..5b7c34d4e1 100644 --- a/util/string/printf.cpp +++ b/util/string/printf.cpp @@ -1,38 +1,38 @@ -#include "printf.h" - -#include <util/stream/printf.h> +#include "printf.h" + +#include <util/stream/printf.h> #include <util/stream/str.h> - + int vsprintf(TString& s, const char* c, va_list params) { - TStringOutput so(s.remove()); - - return Printf(so, c, 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; -} - + 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; -} - + 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; -} + TStringOutput so(s); + + va_list params; + va_start(params, c); + const size_t ret = Printf(so, c, params); + va_end(params); + + return ret; +} |