chsvlib
chsv helper source code

◆ fPrintf()

int Chusov::String::fPrintf ( ::FILE *restrict  stream,
const CHAR_TYPE *restrict  pszFormat,
  ... 
)
noexcept

Resolves to fPrintfA or to fPrintfW depending on the template parameter.

Template Parameters
CHAR_TYPEis a template parameter specifying a type of strings the template specialization is to work with. That is CHAR_TYPE=char for multibyte strings in the current locale or CHAR_TYPE=wchar_t for wide strings. The corresponding functions, wrapped over by the template specializations, are fPrintfA and fPrintfW.
Parameters
[in]streamis a stream descriptor where the formatted string is flushed out.
[in]pszFormatis a zero-terminated formatting string.
...constitute an optional set of additional parameters to build the formatted output according to pszFormat.
Returns
On success the function returns a number of characters of the output not counting the terminating zero. If an error occurs the function returns a negative value.

See fPrintfA and fPrintfW for the details.