You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
348 B
14 lines
348 B
2 years ago
|
#ifndef _UTIL_H
|
||
|
#define _UTIL_H
|
||
|
|
||
|
void * emalloc(unsigned long int size);
|
||
|
void * ecalloc(unsigned long int nmemb, unsigned long int size);
|
||
|
void efree(void *ptr);
|
||
|
|
||
|
void map_file(const unsigned char **str, int *size, const char *path);
|
||
|
void dump_file(const char *path, unsigned char **buf, int *buf_len);
|
||
|
|
||
|
void print_byte(unsigned char byte);
|
||
|
|
||
|
#endif
|