/* defcon-chan: a simple C program that fetches current/last known DEFCON level into your terminal! requirements: libcurl compiling w/ GCC: gcc main.c -o defcon -lcurl running: ./defcon author: hornetmaidan */ #define FILENAME "/tmp/defcon.dat" #define URL "https://defconwarningsystem.com/code.dat" #include #include #include #include #include "src/globals.h" #include "src/cache.h" #include "src/network.h" #include "src/output.h" int main(void) { check_cache(); query_defcon(); print_output(); }