From 0f5e4be79b8be5bc756b7267156d0db5ec705419 Mon Sep 17 00:00:00 2001 From: hackbard Date: Thu, 17 Apr 2003 15:36:28 +0000 Subject: [PATCH] do not print year/comment/genre (commented out) --- mp3read.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/mp3read.c b/mp3read.c index b8c527f..4bfc290 100644 --- a/mp3read.c +++ b/mp3read.c @@ -48,32 +48,31 @@ int main (int argc,char **argv) /* verify TAG now */ if((read(file_fd,&buf,3))<3) { - puts("read failed (1)"); + puts("read failed"); return -23; } - if(strncmp(buf,"TAG",3)) { puts("TAG not found"); return -23; } read(file_fd,&buf,MAX_TITLE); - printf("title: %s\n",buf); + printf("title: %s
\n",buf); read(file_fd,&buf,MAX_ARTIST); - printf("artist: %s\n",buf); + printf("artist: %s
\n",buf); read(file_fd,&buf,MAX_ALBUM); - printf("album: %s\n",buf); + printf("album: %s
\n",buf); - read(file_fd,&buf,MAX_YEAR); - printf("year: %s\n",buf); + // read(file_fd,&buf,MAX_YEAR); + // printf("year: %s
\n",buf); - read(file_fd,&buf,MAX_COMMENT); - printf("comment: %s\n",buf); + // read(file_fd,&buf,MAX_COMMENT); + // printf("comment: %s
\n",buf); - read(file_fd,&buf,MAX_GENRE); - printf("genre: %c\n",*buf); + // read(file_fd,&buf,MAX_GENRE); + // printf("genre: %d
\n",(int)*buf); close(file_fd); -- 2.39.2