From: hackbard Date: Thu, 17 Apr 2003 15:36:28 +0000 (+0000) Subject: do not print year/comment/genre (commented out) X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=0f5e4be79b8be5bc756b7267156d0db5ec705419;p=my-code%2Fmp3db.git do not print year/comment/genre (commented out) --- 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);