capstone/suite/cstest/include/helper.h

23 lines
575 B
C

#ifndef HELPER_H
#define HELPER_H
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <ctype.h>
#include <dirent.h>
char **split(char *str, char *delim, int *size);
void print_strs(char **list_str, int size);
void free_strs(char **list_str, int size);
void add_str(char **src, const char *format, ...);
void trim_str(char **str);
void replace_hex(char **src);
const char *get_filename_ext(const char *filename);
char *readfile(const char *filename);
void listdir(const char *name, char ***files, int *num_files);
#endif /* HELPER_H */