Home
last modified time | relevance | path

Searched refs:strNum (Results 1 – 4 of 4) sorted by relevance

/base/security/access_token/interfaces/innerkits/nativetoken/src/
Dnativetoken_json_oper.c81 uint32_t GetInfoArrFromJson(cJSON *cjsonItem, char *strArr[], int32_t *strNum, StrArrayAttr *attr) in GetInfoArrFromJson() argument
89 *strNum = size; in GetInfoArrFromJson()
117 static int32_t AddStrArrayInfo(cJSON *object, char* const strArray[], int32_t strNum, const char *s… in AddStrArrayInfo() argument
124 for (int32_t i = 0; i < strNum; i++) { in AddStrArrayInfo()
207 static uint32_t UpdateStrArrayType(char* const strArr[], int32_t strNum, const char *strKey, cJSON … in UpdateStrArrayType() argument
214 for (int32_t i = 0; i < strNum; i++) { in UpdateStrArrayType()
Dnativetoken.c397 static uint32_t CheckStrArray(const char **strArray, int32_t strNum, int32_t maxNum, uint32_t maxIn… in CheckStrArray() argument
399 if (((strArray == NULL) && (strNum != 0)) || in CheckStrArray()
400 (strNum > maxNum) || (strNum < 0)) { in CheckStrArray()
404 for (int32_t i = 0; i < strNum; i++) { in CheckStrArray()
546 static uint32_t UpdateStrArrayInList(char *strArr[], int32_t *strNum, in UpdateStrArrayInList() argument
549 for (int32_t i = 0; i < *strNum; i++) { in UpdateStrArrayInList()
554 *strNum = strNumNew; in UpdateStrArrayInList()
/base/security/access_token/interfaces/innerkits/nativetoken/include/
Dnativetoken_json_oper.h31 extern uint32_t GetInfoArrFromJson(cJSON *cjsonItem, char *strArr[], int32_t *strNum, StrArrayAttr …
/base/startup/init/test/unittest/init/
Dcmds_unittest.cpp274 int strNum = 3; variable
275 …uct CmdArgs *ctx = (struct CmdArgs *)calloc(1, sizeof(struct CmdArgs) + sizeof(char *) * (strNum));
276 ctx->argc = strNum;