#include "../src/journal.h" #include #include /* C99 */ #include #include int main(void) { struct journal j = journal(); int success = EXIT_SUCCESS; if(!journal_is_valid(&j)) goto catch; printf("Journal: %s.\n", journal_to_string(&j)); { struct journal_iterator it = journal_begin(&j); union date32 date; const char *value; if(!(journal_next(&it, &date, &value))) goto catch; printf("%u-%u-%u\n" "<%s>", date.year, date.month, date.day, value); } goto finally; catch: success = EXIT_FAILURE; perror("journal"); finally: journal_(&j); return success; } #if 0 /* ### plot with steps reset session $Data <