]> hackdaworld.org Git - my-code/mp3db.git/commitdiff
do not print year/comment/genre (commented out)
authorhackbard <hackbard>
Thu, 17 Apr 2003 15:36:28 +0000 (15:36 +0000)
committerhackbard <hackbard>
Thu, 17 Apr 2003 15:36:28 +0000 (15:36 +0000)
mp3read.c

index b8c527f1988e9b9d364e65e8f775e21f636a2e43..4bfc290b7da65ffd7b50b82a649ce0011df3778b 100644 (file)
--- 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<br>\n",buf);
 
  read(file_fd,&buf,MAX_ARTIST);
- printf("artist: %s\n",buf);
+ printf("artist: %s<br>\n",buf);
 
  read(file_fd,&buf,MAX_ALBUM);
- printf("album: %s\n",buf);
+ printf("album: %s<br>\n",buf);
 
- read(file_fd,&buf,MAX_YEAR);
printf("year: %s\n",buf);
// read(file_fd,&buf,MAX_YEAR);
// printf("year: %s<br>\n",buf);
 
- read(file_fd,&buf,MAX_COMMENT);
printf("comment: %s\n",buf);
// read(file_fd,&buf,MAX_COMMENT);
// printf("comment: %s<br>\n",buf);
 
- read(file_fd,&buf,MAX_GENRE);
printf("genre: %c\n",*buf);
// read(file_fd,&buf,MAX_GENRE);
// printf("genre: %d<br>\n",(int)*buf);
 
  close(file_fd);