__stdio_common_vswprintf

Prints a formatted list of arguments to a character array, with security checks and error handling.

Syntax

int __stdio_common_vswprintf(
    unsigned __int64 const options,
    wchar_t*         const buffer,
    size_t           const buffer_count,
    wchar_t const*   const format,
    _locale_t        const locale,
    va_list          const arglist
    )

Parameters

options
The options that modify the behavior of the function.

buffer
The destination buffer where the formatted output is stored.

buffer_count
The size of the destination buffer in bytes.

format
The format string that specifies how to format the output.

locale
The locale to use when formatting the output.

arglist
The variable argument list that contains the values to be formatted.

Returns

Returns 0 if successful, or a nonzero value if an error occurs.

Remarks

The function returns the number of characters written to the buffer, or a negative value if an error occurs. The function also ensures that the buffer is null-terminated, and that no buffer overflow occurs.

Requirements

Routine Exported by
__stdio_common_vswprintf <ucrtbase_enclave.dll>

See also

atexit