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 | strstr_s (char *dest, rsize_t dmax, const char *src, rsize_t slen, char **substring) |
The strstr_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 strstr_s | ( | char * | dest, |
rsize_t | dmax, | ||
const char * | src, | ||
rsize_t | slen, | ||
char ** | substring | ||
) |
The strstr_s() function locates the first occurrence of the substring pointed to by src which would be located in the string pointed to by dest.
[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 | the maximum number of characters to copy from src |
[out] | substring | the returned substring pointer |
EOK | when successful operation, substring found. |
ESNULLP | when dest/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 69 of file strstr_s.c.