aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/string.h
blob: 70058241666466024e255c60cef1beb0b0f3ed9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __PERF_STRING_H_
#define __PERF_STRING_H_

#include <stdbool.h>
#include "types.h"

s64 perf_atoll(const char *str);
char **argv_split(const char *str, int *argcp);
void argv_free(char **argv);
bool strglobmatch(const char *str, const char *pat);
bool strlazymatch(const char *str, const char *pat);

#define _STR(x) #x
#define STR(x) _STR(x)

#endif /* __PERF_STRING_H */