common.h 545 B

123456789101112131415
  1. #ifndef _COMMON_H_
  2. #define _COMMON_H_
  3. //------------------------------------------------------------------------------
  4. #include <stdint.h>
  5. //------------------------------------------------------------------------------
  6. void trim(char *s);
  7. int mystrcmp(char *p1, char *p2);
  8. void substr(char *dest, const char *src, uint32_t start, uint32_t cnt);
  9. void split(char **arr, char *str, const char *del);
  10. bool IntoChargeProcess(int status);
  11. bool IntoOperateProcess(int status);
  12. char* GetStatusName(int status);
  13. #endif /* _COMMON_H_ */