--- libaitio/inc/aitio.h 2011/05/03 15:41:00 1.9 +++ libaitio/inc/aitio.h 2011/05/17 20:25:20 1.9.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.9 2011/05/03 15:41:00 misho Exp $ +* $Id: aitio.h,v 1.9.2.2 2011/05/17 20:25:20 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -366,6 +366,26 @@ void *io_sarrGet2(sarr_t * __restrict arr, unsigned in inline void *io_sarrSet(sarr_t * __restrict arr, unsigned int idx, void *data); #define io_sarrDel(_arr, _idx) io_sarrSet(_arr, _idx, NULL) #define io_sarr(_arr, _idx, _type) (_type)io_sarrGet(_arr, _idx) + +/* + * io_CopyEnv() Copy environment to new environment array; + * @oldenv = Environment array + * return: NULL error; !=NULL Allocated new environment array(must be free) +*/ +char **io_CopyEnv(const char **oldenv); +/* + * io_ExecArgs() Build exec arguments from other array + * @psProg = Program name for execute + * @oldarg = Arguments array + * return: NULL error; !=NULL Allocated execution array(must be free) +*/ +char **io_ExecArgs(const char *psProg, const char **oldarg); +/* + * io_FreeNullTerm() Free dynamic allocated null terminated array with strings + * @arr = Pointer to array for free + * return: none +*/ +inline void io_FreeNullTerm(char *** __restrict arr); /* * ioURLGet() Parse and get data from input URL