int journal_add_line(time_t tstart, time_t tstop, const char *istart, const char *istop) { int duration=1; printf(" tstart = %d, tstop = %d\n", tstart, tstop); duration = (tstop - tstart)/60; printf("stop = %s, start = %s\n", ctime(&tstop), ctime(&tstart)); myjournal = realloc(myjournal,sizeof(char*)*(++jlen)); myjournal[jlen - 2] = g_strdup_printf("