safec  3.3
Safe C Library - ISO TR24731 Bounds Checking Interface
strerror_s.c File Reference
#include "safe_str_lib.h"
+ Include dependency graph for strerror_s.c:

Functions

EXPORT errno_t _strerror_s_chk (char *dest, rsize_t dmax, errno_t errnum, const size_t destbos)
 
EXPORT size_t strerrorlen_s (errno_t errnum)
 The strerrorlen_s function returns the untruncated length of the textual description of the system error code errnum, identical to the description that would be printed by perror(). More...
 

Function Documentation

◆ _strerror_s_chk()

EXPORT errno_t _strerror_s_chk ( char *  dest,
rsize_t  dmax,
errno_t  errnum,
const size_t  destbos 
)

◆ strerrorlen_s()

EXPORT size_t strerrorlen_s ( errno_t  errnum)

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

Remarks
SPECIFIED IN
  • C11 standard (ISO/IEC 9899:2011): K.3.7.4.2 The strerrorlen_s function (p: 622) http://en.cppreference.com/w/c/byte/strerror
  • ISO/IEC TR 24731, Programming languages, environments and system software interfaces, Extensions to the C Library, Part I: Bounds-checking interfaces
Parameters
[in]errnuminteger value referring to an error code
Returns
The length of the error message or 0
See also
strerror_s()