Lines Matching refs:src
250 atf_dynstr_init_substr(atf_dynstr_t *ad, const atf_dynstr_t *src,
253 if (beg > src->m_length)
254 beg = src->m_length;
256 if (end == atf_dynstr_npos || end > src->m_length)
257 end = src->m_length;
259 return atf_dynstr_init_raw(ad, src->m_data + beg, end - beg);
263 atf_dynstr_copy(atf_dynstr_t *dest, const atf_dynstr_t *src)
267 dest->m_data = (char *)malloc(src->m_datasize);
271 memcpy(dest->m_data, src->m_data, src->m_datasize);
272 dest->m_datasize = src->m_datasize;
273 dest->m_length = src->m_length;