1 #ifndef PRINT_FILE_H 2 #define PRINT_FILE_H 3 4 #include "main.h" 5 6 status_t print_file(FILE *dest, char **country_codes, uint *country, uint *date, uint *infected); 7 8 status_t fprintf_country(FILE *dest, size_t country_code, char **country_codes); 9 status_t fprintf_date(FILE *dest, size_t date); 10 status_t fprintf_infected(FILE *dest, uint infected, char newline); 11 12 void fprintf_infected_monthly(FILE *dest); 13 14 status_t clean_buffer(char *buffer, size_t size); 15 status_t time_translator(time_t unix_time, char *res, size_t size, const char *format); 16 17 18 #endif