safec
2.1
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safeclib_private.h"
#include "safe_str_constraint.h"
#include "safe_str_lib.h"
Go to the source code of this file.
Functions | |
errno_t | strzero_s (char *dest, rsize_t dmax) |
Nulls dmax characters of dest. More... | |
errno_t strzero_s | ( | char * | dest, |
rsize_t | dmax | ||
) |
Nulls dmax characters of dest.
This function can be used to clear strings that contained sensitive data.
[out] | dest | pointer to string that will be nulled. |
[in] | dmax | restricted maximum length of dest |
EOK | when successful operation |
ESNULLP | when dest is NULL pointer |
ESZEROL | when dmax = 0 |
ESLEMAX | when dmax > RSIZE_MAX_STR |
Definition at line 60 of file strzero_s.c.