printf.h 456 B

12345678910111213
  1. #pragma once
  2. #include <util/generic/fwd.h>
  3. #include <util/system/compiler.h>
  4. #include <cstdarg>
  5. /// formatted print. return printed length:
  6. int Y_PRINTF_FORMAT(2, 0) vsprintf(TString& s, const char* c, va_list params);
  7. /// formatted print. return printed length:
  8. int Y_PRINTF_FORMAT(2, 3) sprintf(TString& s, const char* c, ...);
  9. TString Y_PRINTF_FORMAT(1, 2) Sprintf(const char* c, ...);
  10. int Y_PRINTF_FORMAT(2, 3) fcat(TString& s, const char* c, ...);