Home
last modified time | relevance | path

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

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/strchr/
D1-1.c66 char *sample_str; in main() local
72 sample_str = random_string(i, char_pos); in main()
73 sample_char_1 = sample_str[char_pos]; in main()
75 char *ret_str_1 = strchr(sample_str, sample_char_1); in main()
76 char *ret_str_2 = strchr(sample_str, sample_char_2); in main()
77 char *ret_str_3 = strchr(sample_str, sample_char_3); in main()
79 if (ret_str_1 != &sample_str[char_pos]) { in main()
82 &sample_str[char_pos], ret_str_1); in main()
84 } else if (ret_str_2 != &sample_str[i]) { in main()
88 " but returned: %p\n", &sample_str[i - 1], ret_str_2); in main()
[all …]