2020-10-13 15:04:59 +02:00
|
|
|
/******************************************************************************/
|
2020-10-19 21:56:12 +02:00
|
|
|
/* SlunkCrypt, by LoRd_MuldeR <MuldeR2@GMX.de> */
|
2020-10-13 15:04:59 +02:00
|
|
|
/* This work has been released under the CC0 1.0 Universal license! */
|
|
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
#ifndef INC_UTILS_H
|
|
|
|
#define INC_UTILS_H
|
|
|
|
|
|
|
|
#include "platform.h"
|
2020-10-13 19:50:29 +02:00
|
|
|
#include <stdint.h>
|
2020-10-13 15:04:59 +02:00
|
|
|
|
2020-10-20 19:13:11 +02:00
|
|
|
typedef void (signal_handler_t)(int);
|
|
|
|
|
2020-10-14 16:36:17 +02:00
|
|
|
void init_terminal(void);
|
2020-10-20 19:13:11 +02:00
|
|
|
void setup_signal_handler(const int signo, signal_handler_t* const handler);
|
2020-10-27 21:26:30 +01:00
|
|
|
uint64_t swap_bytes_u64(const uint64_t value);
|
2020-10-13 19:33:01 +02:00
|
|
|
char* CHR_to_utf8(const CHR *const input);
|
2020-10-13 15:04:59 +02:00
|
|
|
uint64_t get_file_size(FILE* const file);
|
2020-10-14 16:36:17 +02:00
|
|
|
const CHR *get_file_name(const CHR *path);
|
2020-10-13 15:04:59 +02:00
|
|
|
|
|
|
|
#endif
|