#include "../src/text.h" #include #include int main(void) { struct text t = text(); char *content; int success = EXIT_SUCCESS; if(!(content = text_append_file(&t, "Makefile"))) goto catch; printf("%s", content); goto finally; catch: success = EXIT_FAILURE; perror("text"); finally: text_(&t); return success; }