Searched refs:sample_str_1 (Results 1 – 3 of 3) sorted by relevance
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/strncpy/ |
D | 1-1.c | 55 char *sample_str_1; in main() local 61 sample_str_1 = random_string(i); in main() 64 ret_str = strncpy(sample_str_2, sample_str_1, num_bytes); in main() 67 sample_str_1[num_bytes] = '\0'; in main() 69 if (strcmp(sample_str_2, sample_str_1) != 0 in main() 73 , sample_str_1, sample_str_2); in main() 81 free(sample_str_1); in main()
|
D | 2-1.c | 56 char *sample_str_1; in main() local 62 sample_str_1 = random_string(i); in main() 63 ret_str = strncpy(sample_str_2, sample_str_1, i + EXTRA_BYTES); in main() 66 if (strcmp(sample_str_1, sample_str_2) != 0) { in main() 69 , sample_str_1, sample_str_2); in main() 78 for (j = strlen(sample_str_1); j < i + EXTRA_BYTES; j++) { in main() 90 free(sample_str_1); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/strcpy/ |
D | 1-1.c | 53 char *sample_str_1; in main() local 59 sample_str_1 = random_string(i); in main() 60 ret_str = strcpy(sample_str_2, sample_str_1); in main() 62 if (strcmp(sample_str_1, sample_str_2) != 0) { in main() 65 , sample_str_1, sample_str_2); in main() 73 free(sample_str_1); in main()
|