--- libaitio/src/Attic/array.c 2012/07/30 11:49:46 1.10.6.5 +++ libaitio/src/Attic/array.c 2012/08/01 00:37:08 1.11 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: array.c,v 1.10.6.5 2012/07/30 11:49:46 misho Exp $ +* $Id: array.c,v 1.11 2012/08/01 00:37:08 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -464,28 +464,6 @@ io_arrayCopy(array_t ** __restrict dest, array_t * __r memcpy((*dest)->arr_data, src->arr_data, io_arraySize(*dest) * sizeof(void*)); return io_arraySize(*dest); -} - -/* - * io_argsNum() Parse and calculate number of arguments - * - * @csArgs = Input arguments line - * @csDelim = Delimiter(s) for separate - * return: 0 error format; -1 error:: can`t read; >0 ok, number of items - */ -inline int -io_argsNum(const char *csArgs, const char *csDelim) -{ - register int res; - char *pos; - - assert(csArgs); - assert(csDelim); - if (!csArgs || !csDelim) - return -1; - - for (res = 1, pos = (char*) csArgs; (pos = strpbrk(pos, csDelim)); res++, pos++); - return res; } /*