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 | strlastchar_s (char *dest, rsize_t dmax, char c, char **last) |
Returns a pointer to the last occurrence of character c in dest. More... | |
errno_t strlastchar_s | ( | char * | dest, |
rsize_t | dmax, | ||
char | c, | ||
char ** | last | ||
) |
Returns a pointer to the last occurrence of character c in dest.
The scanning stops at the first null or after dmax characters.
[in] | dest | pointer to string to compare against |
[in] | dmax | restricted maximum length of string |
[in] | c | character to locate |
[out] | last | returned pointer to first occurrence of c |
EOK | when pointer to last occurrence is returned |
ESNULLP | when dst/first is NULL pointer |
ESZEROL | when dmax = 0 |
ESLEMAX | when dmax > RSIZE_MAX_STR |
Definition at line 70 of file strlastchar_s.c.