string.h 468 B

123456789101112131415161718
  1. #ifndef __PERF_STRING_H_
  2. #define __PERF_STRING_H_
  3. #include <stdbool.h>
  4. #include "types.h"
  5. int hex2u64(const char *ptr, u64 *val);
  6. char *strxfrchar(char *s, char from, char to);
  7. s64 perf_atoll(const char *str);
  8. char **argv_split(const char *str, int *argcp);
  9. void argv_free(char **argv);
  10. bool strglobmatch(const char *str, const char *pat);
  11. bool strlazymatch(const char *str, const char *pat);
  12. #define _STR(x) #x
  13. #define STR(x) _STR(x)
  14. #endif /* __PERF_STRING_H */