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