chsvlib
chsv helper source code

◆ vfPrintf_s()

int Chusov::String::vfPrintf_s ( ::FILE *restrict  stream,
const CHAR_TYPE *restrict  pszFormat,
va_list  ap 
)
noexcept

Resolves to vfPrintfA_s or to vfPrintfW_s 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 vfPrintfA_s and vfPrintfW_s.
Parameters
[in]streamis a stream descriptor where the formatted string is flushed out.
[in]pszFormatis a zero-terminated formatting string.
[in]apis a list of additional parameters corresponding to pszFormat.
Returns
On success the function returns a number of characters of the output not counting the terminating zero. If an output, encoding or runtime constraint violation error occurs the function returns a negative value.

See vfPrintfA_s and vfPrintfW_s for the details.