safec 3.15
Safe C Library - ISO TR24731 Bounds Checking Interface
Loading...
Searching...
No Matches
fu8printf_s.c File Reference
#include "safe_u8_lib.h"
Include dependency graph for fu8printf_s.c:

Functions

EXPORT int fu8printf_s (FILE *restrict stream, const char *restrict fmt,...)
 The fu8printf_s function composes a string via the format string and writes it, as utf-8, to a FILE stream.

Function Documentation

◆ fu8printf_s()

EXPORT int fu8printf_s ( FILE *restrict stream,
const char *restrict fmt,
... )

The fu8printf_s function composes a string via the format string and writes it, as utf-8, to a FILE stream.

Parameters
[out]streamoutput file stream to write to
[in]fmtformat-control string.
[in]...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
-ESNULLPwhen stream or fmt is NULL pointer
-EINVALwhen fmt contains n
-1on some other error. errno may be set then.
See also
vfu8printf_s(), fprintf_s()