| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#ifndef HELPER_H |
| 6 |
#define HELPER_H |
| 7 |
|
| 8 |
#include <string.h> |
| 9 |
#include <stdlib.h> |
| 10 |
#include <stdio.h> |
| 11 |
#include <stdarg.h> |
| 12 |
#include <ctype.h> |
| 13 |
#include <dirent.h> |
| 14 |
#include "capstone_test.h" |
| 15 |
|
| 16 |
#define X86_16 0 |
| 17 |
#define X86_32 1 |
| 18 |
#define X86_64 2 |
| 19 |
|
| 20 |
char **split(char *str, char *delim, int *size); |
| 21 |
void print_strs(char **list_str, int size); |
| 22 |
void free_strs(char **list_str, int size); |
| 23 |
void add_str(char **src, const char *format, ...); |
| 24 |
void trim_str(char *src); |
| 25 |
void replace_hex(char *src); |
| 26 |
void replace_negative(char *src, int mode); |
| 27 |
const char *get_filename_ext(const char *filename); |
| 28 |
|
| 29 |
char *readfile(const char *filename); |
| 30 |
void listdir(const char *name, char ***files, int *num_files); |
| 31 |
|
| 32 |
#endif |