/* 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);