From e660aacdb3fe0f79d1531d9aa0c8ce2f158b7ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Wed, 21 Nov 2007 20:09:39 +0100 Subject: - Added Makefile - Moved `test programs` out of source tree (So the Makefile actually works) --- src/id3test.c | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 src/id3test.c (limited to 'src/id3test.c') diff --git a/src/id3test.c b/src/id3test.c deleted file mode 100644 index 6136112..0000000 --- a/src/id3test.c +++ /dev/null @@ -1,26 +0,0 @@ -/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ -#include -#include -#include "mp3node.h" - -/* Compile with gcc -Wall -lid3 -I../include id3test.c */ - -int main (int argc, char **argv) -{ - if (argc != 2) - return -1; - - struct mnode node; - - node.tag = ID3Tag_New (); - ID3Tag_Link (node.tag, argv[1]); - ID3Frame *artist_frame = ID3Tag_FindFrameWithID (node.tag, ID3FID_LEADARTIST); - - ID3Field *field = ID3Frame_GetField (artist_frame, ID3FN_TEXT); - char *artist = malloc (sizeof(char) * (ID3Field_Size (field) + 1)); - ID3Field_GetASCII (field, artist, ID3Field_Size (field)); - - printf("Artist: %s\n", artist); - - return 0; -} -- cgit v1.2.3