common.h 425 B

12345678910111213
  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. #endif /* _COMMON_H_ */