aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/printf.h
blob: 925c6edaff100eb0ce836749104e073937066866 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <util/generic/fwd.h>
#include <util/system/compiler.h>

#include <cstdarg>

/// formatted print. return printed length:
int Y_PRINTF_FORMAT(2, 0) vsprintf(TString& s, const char* c, va_list params);
/// formatted print. return printed length:
int Y_PRINTF_FORMAT(2, 3) sprintf(TString& s, const char* c, ...);
TString Y_PRINTF_FORMAT(1, 2) Sprintf(const char* c, ...);
int Y_PRINTF_FORMAT(2, 3) fcat(TString& s, const char* c, ...);