Home
last modified time | relevance | path

Searched refs:strLength (Results 1 - 2 of 2) sorted by relevance

/developtools/profiler/device/plugins/native_hook/test/
H A Dhook_test.c341 int strLength = RandInt(10, maxLength); in RandString() local
342 if (strLength <= 0) { in RandString()
343 printf("fail:malloc %d memory", strLength); in RandString()
346 char* data = (char*)malloc(strLength + 1); in RandString()
348 for (int i = 0; i < strLength; i++) { in RandString()
351 data[strLength] = '\0'; in RandString()
H A Dmalloc_test.cpp356 int strLength = RandInt(10, maxLength); in RandString() local
357 if (strLength <= 0) { in RandString()
358 printf("fail:malloc %d memory", strLength); in RandString()
361 char* data = static_cast<char*>(malloc(strLength + 1)); in RandString()
363 for (int i = 0; i < strLength; i++) { in RandString()
366 data[strLength] = '\0'; in RandString()

Completed in 2 milliseconds