aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/printf.h
blob: 841fa16e51773505b5265f894c6c053a5b224109 (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, ...);