Lines Matching refs:nameLen
67 static TestNode *createTestNode(const char* name, int32_t nameLen);
74 int* nameLen,
147 int* nameLen, in getNextLevel() argument
156 *nameLen = (int)((*nextName) - name); in getNextLevel()
158 strncpy(n, name, *nameLen); in getNextLevel()
159 n[*nameLen] = 0; in getNextLevel()
163 *nameLen = (int)strlen(name); in getNextLevel()
167 static TestNode *createTestNode(const char* name, int32_t nameLen) in createTestNode() argument
171 newNode = (TestNode*)malloc(sizeof(TestNode) + (nameLen + 1)); in createTestNode()
177 strncpy( newNode->name, name, nameLen ); in createTestNode()
178 newNode->name[nameLen] = 0; in createTestNode()
221 int nameLen; /* length of current 'name' */ in addTestNode() local
234 getNextLevel ( name, &nameLen, &nextName ); in addTestNode()
246 getNextLevel(name, &nameLen, &nextName); in addTestNode()
249 curNode->child = createTestNode(name, nameLen); in addTestNode()
260 while (strncmp_nullcheck ( name, nextNode->name, nameLen) != 0 ) in addTestNode()
268 nextNode = createTestNode(name, nameLen); in addTestNode()
559 int nameLen; /* length of current 'name' */ in getTest() local
576 getNextLevel ( name, &nameLen, &nextName ); in getTest()
588 while (strncmp_nullcheck ( name, nextNode->name, nameLen) != 0 ) in getTest()