#ifndef _COMMON_H_ | |
#define _COMMON_H_ | |
#define NO_ERROR 0 | |
#define ERR_VALID 70 //valid error | |
#define ERR_CMDVALID 71 //cmd error | |
#define ERR_SESSIONVALID 72 //session error | |
#define ERR_MALLOCVALID 73 //malloc error | |
#define ERR_INVOKE 74 //invoke error | |
#define ERR_SYSTEM 75 //system error | |
#define ERR_TIMEOUT 76 //time out error | |
#define BUF_SIZE 8192 | |
//int th_error; | |
int str_arr(char *str, char *substr, char parts[][BUF_SIZE]); | |
#endif | |