#pragma once #include #include #include __attribute__ ((__format__(printf, 1, 2))) void error(const char* format, ...); FILE* get_file(const char* path, const char* type); long int get_number(const char* text); bool streql(const char* a, const char* b); bool prefix(const char* pre, const char* str); void print_file_size(size_t bytes, char buf[5]); void print_date_time(time_t mills, char buf[13]);