22 lines
734 B
C
Raw Normal View History

2020-10-13 15:04:59 +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);
void init_terminal(void);
2020-10-20 19:13:11 +02:00
void setup_signal_handler(const int signo, signal_handler_t* const handler);
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);
const CHR *get_file_name(const CHR *path);
2020-10-13 15:04:59 +02:00
#endif