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

Functions

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

Function Documentation

◆ u8printf_s()

EXPORT int u8printf_s ( const char *restrict fmt,
... )

The u8printf_s function composes a string via the format string and writes it, as utf-8, to the STDOUT file.

Parameters
[in]fmtformat-control string
[in]...optional arguments
Precondition
fmt shall not 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 fmt is NULL pointer
-EINVALwhen fmt contains n
-1on some other error. errno might be set then.
See also
vu8printf_s(), printf_s()