|
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"
Include dependency graph for strcasestr_s.c:Go to the source code of this file.
Functions | |
| errno_t | strcasestr_s (char *dest, rsize_t dmax, const char *src, rsize_t slen, char **substring) |
| The strcasestr_s() function locates the first occurrence of the substring pointed to by src which would be located in the string pointed to by dest. More... | |
| errno_t strcasestr_s | ( | char * | dest, |
| rsize_t | dmax, | ||
| const char * | src, | ||
| rsize_t | slen, | ||
| char ** | substring | ||
| ) |
The strcasestr_s() function locates the first occurrence of the substring pointed to by src which would be located in the string pointed to by dest.
The comparison is case insensitive.
| [in] | dest | pointer to string to be searched for the substring |
| [in] | dmax | restricted maximum length of dest string |
| [in] | src | pointer to the sub string |
| [in] | slen | maximum length of src string |
| [out] | substring | returned pointer to the substring |
| EOK | when successful operation, substring found. |
| ESNULLP | when dst/src/substring is NULL pointer |
| ESZEROL | when dmax/slen = 0 |
| ESLEMAX | when dmax/slen > RSIZE_MAX_STR |
| ESNOTFND | when substring not found |
Definition at line 70 of file strcasestr_s.c.