version 1.2.2.4, 2011/12/12 12:42:27
|
version 1.2.2.6, 2011/12/13 02:22:05
|
Line 429 io_map2vars(u_char *buf, int buflen, int vnum, int zcp
|
Line 429 io_map2vars(u_char *buf, int buflen, int vnum, int zcp
|
* return: =NULL error or !=NULL allocated array |
* return: =NULL error or !=NULL allocated array |
*/ |
*/ |
inline array_t * |
inline array_t * |
io_allocVars(u_int varnum) | io_allocVars(int varnum) |
{ |
{ |
array_t *arr; |
array_t *arr; |
register int i; |
register int i; |
Line 456 io_allocVars(u_int varnum)
|
Line 456 io_allocVars(u_int varnum)
|
/* |
/* |
* io_clrVars() Clear ait_val_t elements from array |
* io_clrVars() Clear ait_val_t elements from array |
* @vars = Variable array |
* @vars = Variable array |
* return: size of array | * return: -1 error or size of array |
*/ |
*/ |
inline int |
inline int |
io_clrVars(array_t * __restrict vars) |
io_clrVars(array_t * __restrict vars) |
{ |
{ |
register int i; |
register int i; |
|
|
|
if (!vars) |
|
return -1; |
|
|
for (i = 0; i < io_arraySize(vars); i++) |
for (i = 0; i < io_arraySize(vars); i++) |
if (io_arrayGet(vars, i)) |
if (io_arrayGet(vars, i)) |