|
safec
3.2
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safe_str_lib.h"
Include dependency graph for strlastchar_s.c:Functions | |
| EXPORT 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... | |
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 |