--- libaitio/inc/aitio.h 2012/03/10 15:02:47 1.14.2.3 +++ libaitio/inc/aitio.h 2012/03/10 15:37:09 1.14.2.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.14.2.3 2012/03/10 15:02:47 misho Exp $ +* $Id: aitio.h,v 1.14.2.4 2012/03/10 15:37:09 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -439,6 +439,20 @@ inline unsigned char *io_Ch2Hex(unsigned char *psLine, * return: NULL nothing to do or error; !=0 Allocated new converted string(must be free) */ inline char *io_Hex2Ch(unsigned char *psLine, int lineLen); + +/* + * io_Path2File() - Parse and make path/filename pair + * + * @csArgs = Input argument line + * @psPath = Output Path, if ==NULL path not returned + * @pathLen = Size of path array + * @psFile = Output File + * @fileLen = Size of file array + * return: 0 error format; -1 error:: can`t read; >0 ok, number of readed items + */ +inline int +io_Path2File(const char * __restrict csArgs, char * __restrict psPath, + int pathLen, char * __restrict psFile, int fileLen); /* * io_arrayInit() - Create and initialize dynamic array