utils.h 232 B

1234567891011121314
  1. #ifndef UTILS_H
  2. #define UTILS_H 1
  3. #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
  4. void pt_log(int level, const char *fmt, ...);
  5. double time_as_double(void);
  6. #if 0
  7. void print_hexstr(unsigned char *buf, size_t siz);
  8. #endif
  9. #endif