OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:sample_str_2
(Results
1 - 3
of
3
) sorted by null
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/strncpy/
1-1.c
56
char *
sample_str_2
= malloc(i - 1);
local
57
if (
sample_str_2
== NULL) {
64
ret_str = strncpy(
sample_str_2
, sample_str_1, num_bytes);
66
sample_str_2
[num_bytes] = '\0';
69
if (strcmp(
sample_str_2
, sample_str_1) != 0
70
&& ret_str ==
sample_str_2
) {
73
, sample_str_1,
sample_str_2
);
75
} else if (ret_str !=
sample_str_2
) {
78
,
sample_str_2
, ret_str);
82
free(
sample_str_2
);
[
all
...]
2-1.c
57
char *
sample_str_2
= malloc(i + EXTRA_BYTES);
local
58
if (
sample_str_2
== NULL) {
63
ret_str = strncpy(
sample_str_2
, sample_str_1, i + EXTRA_BYTES);
64
sample_str_2
[i + EXTRA_BYTES] = '\0';
66
if (strcmp(sample_str_1,
sample_str_2
) != 0) {
69
, sample_str_1,
sample_str_2
);
71
} else if (ret_str !=
sample_str_2
) {
74
,
sample_str_2
, ret_str);
79
if (
sample_str_2
[j] == '\0') {
91
free(
sample_str_2
);
[
all
...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/strcpy/
1-1.c
54
char *
sample_str_2
= malloc(i + 1);
local
55
if (
sample_str_2
== NULL) {
60
ret_str = strcpy(
sample_str_2
, sample_str_1);
62
if (strcmp(sample_str_1,
sample_str_2
) != 0) {
65
, sample_str_1,
sample_str_2
);
67
} else if (ret_str !=
sample_str_2
) {
70
,
sample_str_2
, ret_str);
74
free(
sample_str_2
);
Completed in 225 milliseconds