version 1.4.2.1, 2011/08/31 12:29:32
|
version 1.4.2.2, 2011/08/31 12:46:58
|
Line 373 io_arrayConcat(array_t * __restrict dest, array_t * __
|
Line 373 io_arrayConcat(array_t * __restrict dest, array_t * __
|
} |
} |
|
|
/* |
/* |
|
* io_arrayCopy() Copy source array to destination array |
|
* @dest = Destination array, after use free with io_arrayDestroy() |
|
* @src = Source array |
|
* return: -1 error; >0 count of destination array |
|
*/ |
|
int |
|
io_arrayCopy(array_t ** __restrict dest, array_t * __restrict src) |
|
{ |
|
assert(dest); |
|
assert(src); |
|
if (!dest || !src) |
|
return -1; |
|
|
|
*dest = io_arrayInit(io_arraySize(src)); |
|
if (!*dest) |
|
return -1; |
|
|
|
memcpy((*dest)->arr_data, src->arr_data, io_arraySize(*dest) * sizeof(void*)); |
|
return io_arraySize(*dest); |
|
} |
|
|
|
/* |
* io_argsNum() Parse and calculate number of arguments |
* io_argsNum() Parse and calculate number of arguments |
* @csArgs = Input arguments line |
* @csArgs = Input arguments line |
* @csDelim = Delimiter(s) for separate |
* @csDelim = Delimiter(s) for separate |