186 * |
186 * |
187 * This function clones the specified array by using memcpy(). |
187 * This function clones the specified array by using memcpy(). |
188 * If the destination capacity is insufficient, an automatic reallocation is |
188 * If the destination capacity is insufficient, an automatic reallocation is |
189 * attempted. |
189 * attempted. |
190 * |
190 * |
|
191 * Note: if the destination array is uninitialized, the behavior is undefined. |
|
192 * |
191 * @param dest the array to copy to |
193 * @param dest the array to copy to |
192 * @param src the array to copy from |
194 * @param src the array to copy from |
193 * @return zero on success, non-zero on reallocation failure. |
195 * @return zero on success, non-zero on reallocation failure. |
194 */ |
196 */ |
195 int ucx_array_clone(UcxArray* dest, UcxArray const* src); |
197 int ucx_array_clone(UcxArray* dest, UcxArray const* src); |