Lines Matching refs:strd
142 char *strd = strdup(str1); in test_strdup() local
143 ASSERT_ZERO_LABEL(strd[0]); in test_strdup()
144 ASSERT_LABEL(strd[3], i_label); in test_strdup()
145 free(strd); in test_strdup()
153 char *strd = strncpy(str2, str1, 5); in test_strncpy() local
154 assert(strd == str2); in test_strncpy()
156 ASSERT_ZERO_LABEL(strd); in test_strncpy()
157 ASSERT_ZERO_LABEL(strd[0]); in test_strncpy()
158 ASSERT_ZERO_LABEL(strd[1]); in test_strncpy()
159 ASSERT_ZERO_LABEL(strd[2]); in test_strncpy()
160 ASSERT_LABEL(strd[3], i_label); in test_strncpy()
162 strd = strncpy(str2, str1, 3); in test_strncpy()
163 assert(strd == str2); in test_strncpy()
165 ASSERT_ZERO_LABEL(strd); in test_strncpy()
166 ASSERT_ZERO_LABEL(strd[0]); in test_strncpy()
167 ASSERT_ZERO_LABEL(strd[1]); in test_strncpy()
168 ASSERT_ZERO_LABEL(strd[2]); in test_strncpy()