Lines Matching defs:context
66 SECUREC_INLINE char *SecUpdateToken(char *strToken, const char *strDelimit, char **context)
68 /* Point to updated position. Record string position for next search in the context */
69 *context = SecFindRest(strToken, strDelimit);
71 if (*context == strToken) {
86 * context Used to store position information between calls
89 * context is updated
92 * In subsequent calls, the strtoken is set to NULL, and the context set is the same as the previous call,
93 * return NULL if the *context string length is equal 0, otherwise return *context.
95 char *strtok_s(char *strToken, const char *strDelimit, char **context)
98 /* Validate delimiter and string context */
99 if (context == NULL || strDelimit == NULL) {
103 if (orgToken == NULL && *context == NULL) {
106 /* If string is null, continue searching from previous string position stored in context */
108 orgToken = *context;
111 return SecUpdateToken(orgToken, strDelimit, context);