369 * The memory in the @p dest structure is either allocated or re-allocated to fit the entire |
369 * The memory in the @p dest structure is either allocated or re-allocated to fit the entire |
370 * source string, including a zero-terminator. |
370 * source string, including a zero-terminator. |
371 * |
371 * |
372 * The string in @p dest is guaranteed to be zero-terminated, regardless of whether @p src is. |
372 * The string in @p dest is guaranteed to be zero-terminated, regardless of whether @p src is. |
373 * |
373 * |
374 * @param alloc (@c CxAllocator*) the allocator |
|
375 * @param dest (@c cxmutstr*) a pointer to the structure where to copy the contents to |
374 * @param dest (@c cxmutstr*) a pointer to the structure where to copy the contents to |
376 * @param src (@c cxstring) the source string |
375 * @param src (@c cxstring) the source string |
377 * |
376 * |
378 * @retval zero success |
377 * @retval zero success |
379 * @retval non-zero if re-allocation failed |
378 * @retval non-zero if re-allocation failed |