Home
last modified time | relevance | path

Searched refs:sample_str_2 (Results 1 – 3 of 3) sorted by relevance

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/strncpy/
D1-1.c56 char *sample_str_2 = malloc(i - 1); in main() local
57 if (sample_str_2 == NULL) { in main()
64 ret_str = strncpy(sample_str_2, sample_str_1, num_bytes); in main()
66 sample_str_2[num_bytes] = '\0'; in main()
69 if (strcmp(sample_str_2, sample_str_1) != 0 in main()
70 && ret_str == sample_str_2) { in main()
73 , sample_str_1, sample_str_2); in main()
75 } else if (ret_str != sample_str_2) { in main()
78 , sample_str_2, ret_str); in main()
82 free(sample_str_2); in main()
D2-1.c57 char *sample_str_2 = malloc(i + EXTRA_BYTES); in main() local
58 if (sample_str_2 == NULL) { in main()
63 ret_str = strncpy(sample_str_2, sample_str_1, i + EXTRA_BYTES); in main()
64 sample_str_2[i + EXTRA_BYTES] = '\0'; in main()
66 if (strcmp(sample_str_1, sample_str_2) != 0) { in main()
69 , sample_str_1, sample_str_2); in main()
71 } else if (ret_str != sample_str_2) { in main()
74 , sample_str_2, ret_str); in main()
79 if (sample_str_2[j] == '\0') { in main()
91 free(sample_str_2); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/strcpy/
D1-1.c54 char *sample_str_2 = malloc(i + 1); in main() local
55 if (sample_str_2 == NULL) { 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()
67 } else if (ret_str != sample_str_2) { in main()
70 , sample_str_2, ret_str); in main()
74 free(sample_str_2); in main()