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 | strremovews_s (char *dest, rsize_t dmax) |
Removes beginning and trailing whitespace from the string pointed to by dest by shifting the text left over writting the beginning whitespace. More... | |
errno_t strremovews_s | ( | char * | dest, |
rsize_t | dmax | ||
) |
Removes beginning and trailing whitespace from the string pointed to by dest by shifting the text left over writting the beginning whitespace.
The shifted-trimmed text is null terminated. The text is shifted so the original pointer can continue to be used. This is useful when the memory was malloc'ed and will need to be freed.
[out] | dest | pointer to string to left justify |
[in] | dmax | restricted maximum length of string |
EOK | when successful operation |
ESNULLP | when dest is NULL pointer |
ESZEROL | when dmax = 0 |
ESLEMAX | when dmax > RSIZE_MAX_STR |
ESUNTERM | when dest was not null terminated |
Definition at line 70 of file strremovews_s.c.