void cd_dump (Cd *cd) { int i; printf("Disc Info\n"); printf("mode: %d\n", cd->mode); printf("catalog: %s\n", cd->catalog); if (NULL != cd->cdtext) { printf("cdtext:\n"); /* cdtext_print(stdout, cd->cdtext); */ } for (i = 0; i < cd->ntrack; ++i) { printf("Track %d Info\n", i + 1); cd_track_dump(cd->track[i]); } }
void cd_dump(Cd *cd) { int i; printf("Disc Info\n"); printf("mode: %d\n", cd->mode); printf("catalog: %s\n", cd->catalog); printf("cdtextfile: %s\n", cd->cdtextfile); if (NULL != cd->cdtext) { printf("cdtext:\n"); cdtext_dump(cd->cdtext, 0); } if (cd->rem != NULL) { fprintf(stdout, "rem:\n"); rem_dump(cd->rem); } for (i = 0; i < cd->ntrack; ++i) { printf("Track %d Info\n", i + 1); cd_track_dump(cd->track[i]); } }