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

Functions

errno_t u8error_s (char8_t *dest, rsize_t dmax, errno_t errnum)
EXPORT size_t u8errorlen_s (errno_t errnum)
 The u8errorlen_s function returns the untruncated byte-length of the textual description of the system error code errnum, identical to the description that would be printed by perror().

Function Documentation

◆ u8error_s()

errno_t u8error_s ( char8_t * dest,
rsize_t dmax,
errno_t errnum )

◆ u8errorlen_s()

EXPORT size_t u8errorlen_s ( errno_t errnum)

The u8errorlen_s function returns the untruncated byte-length of the textual description of the system error code errnum, identical to the description that would be printed by perror().

Error messages are plain ASCII, so their byte-length equals their utf-8 character length.

Parameters
[in]errnuminteger value referring to an error code
Returns
The length of the error message or 0
See also
u8error_s(), strerrorlen_s()