lwprintf_vsnprintf_ex

Function lwprintf_vsnprintf_ex 

Source
pub unsafe extern "C" fn lwprintf_vsnprintf_ex(
    lwobj: *mut lwprintf_s,
    s: *mut c_char,
    n: usize,
    format: *const c_char,
    arg: VaList<'_>,
) -> c_int
Expand description

Write formatted data from variable argument list to sized buffer.

ยงArguments

  • lwobj - LwPRINTF instance. Set to NULL to use default instance.
  • s - Pointer to a buffer where the resulting C-string is stored. The buffer should have a size of at least n characters.
  • n - Maximum number of bytes to be used in the buffer. The generated string has a length of at most n - 1, leaving space for the additional terminating null character.
  • format - C string that contains the text to be written to output.
  • arg - A value identifying a variable arguments list initialized with va_start. va_list is a special type defined in cstdarg.