The vfu8printf_s function composes a string via the format string and writes it, as utf-8, to a FILE stream.
- Parameters
-
| [out] | stream | output file stream to write to |
| [in] | fmt | format-control string. |
| [in] | arg | optional arguments |
- Precondition
- Neither stream nor fmt shall be a null pointer.
-
fmt shall not contain the conversion specifier n.
- Returns
- On success the total number of bytes written is returned.
-
On failure a negative number is returned.
- Return values
-
| -ESNULLP | when stream or fmt is NULL pointer |
| -EINVAL | when fmt contains n |
| -1 | on some other error. errno is set then. |
- See also
- fu8printf_s(), vfprintf_s()