|
safec
3.2
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safe_str_lib.h"
Include dependency graph for strfirstchar_s.c:Functions | |
| EXPORT errno_t | strfirstchar_s (char *dest, rsize_t dmax, char c, char **first) |
| This function returns a pointer to the first occurrence of character c in dest. More... | |
This function returns a pointer to the first 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] | first | returned pointer to first occurrence of c |
| EOK | when pointer to first occurrence is returned |
| ESNULLP | when dst/first is NULL pointer |
| ESZEROL | when dmax = 0 |
| ESLEMAX | when dmax > RSIZE_MAX_STR |