diff --git a/a0Script b/a0Script new file mode 100644 index 0000000000000000000000000000000000000000..8af4e0effbc7c94ba42bb2ee6b8dd8cfceec018c --- /dev/null +++ b/a0Script @@ -0,0 +1,60 @@ +Script started on Thu 14 Sep 2017 07:43:43 PM EDT +]0;brodriguez8774@DevLaptop: ~/Classes/CS3240/Assignments/a0[01;32mbrodriguez8774@DevLaptop[00m:[01;34m~/Classes/CS3240/Assignments/a0[00m$ make all +gcc -Wall -Wpedantic -std=c99 *.c -g -o 3240Assignment0 +[01m[KMain.c:[m[K In function ‘[01m[Kinitialize_data[m[K’: +[01m[KMain.c:215:21:[m[K [01;35m[Kwarning: [m[Kimplicit declaration of function ‘[01m[Kstrdup[m[K’ [-Wimplicit-function-declaration] + temp_song = strdup(buffer); +[01;32m[K ^[m[K +[01m[KMain.c:215:19:[m[K [01;35m[Kwarning: [m[Kassignment makes pointer from integer without a cast [-Wint-conversion] + temp_song = strdup(buffer); +[01;32m[K ^[m[K +[01m[KMain.c:220:25:[m[K [01;35m[Kwarning: [m[Kimplicit declaration of function ‘[01m[Kstrsep[m[K’ [-Wimplicit-function-declaration] + while ((token = strsep(&temp_song, ",")) != NULL) { +[01;32m[K ^[m[K +[01m[KMain.c:220:23:[m[K [01;35m[Kwarning: [m[Kassignment makes pointer from integer without a cast [-Wint-conversion] + while ((token = strsep(&temp_song, ",")) != NULL) { +[01;32m[K ^[m[K +]0;brodriguez8774@DevLaptop: ~/Classes/CS3240/Assignments/a0[01;32mbrodriguez8774@DevLaptop[00m:[01;34m~/Classes/CS3240/Assignments/a0[00m$ ./2[K3240Assignment0 +Initializing... +Reading csv... +To display help text again, type 'Help'. +To print all songs, type 'All' +To exit program, type 'ZZZ'. +Otherwise, type name of song you wish to locate. + +Deep Sea Creature +Song Name: "Deep Sea Creature" +Album Name: "Call of the Mastodon" +Artist Name: "Mastodon" +Duration: 280.22 +year: 2001 +Hotttnesss: 0.597641 + +PECADO DE AMOR +Song Name: "Pecado De Amor" +Album Name: "Ao Vivo" +Artist Name: "José Augusto" +Duration: 284.71 +year: 0 +Hotttnesss: 0.000000 + +where do i fit +Song Name: "Where Do I Fit" +Album Name: "Tonic" +Artist Name: "Tonic" +Duration: 184.69 +year: 0 +Hotttnesss: 0.638746 + +help +To display help text again, type 'Help'. +To print all songs, type 'All' +To exit program, type 'ZZZ'. +Otherwise, type name of song you wish to locate. + +zzz +Exiting Program... +]0;brodriguez8774@DevLaptop: ~/Classes/CS3240/Assignments/a0[01;32mbrodriguez8774@DevLaptop[00m:[01;34m~/Classes/CS3240/Assignments/a0[00m$ exit +exit + +Script done on Thu 14 Sep 2017 07:44:18 PM EDT diff --git a/test-input.txt b/test-input.txt new file mode 100644 index 0000000000000000000000000000000000000000..e5967bf63abd902a23e97bf0c80d04de93dbdb90 --- /dev/null +++ b/test-input.txt @@ -0,0 +1,14 @@ +We're Not Gonna Bow +Deep Sea Creature +Stand By Me +Ralph's Rhapsody +Don't Mess With the IRS +Dr. Elmo's Twisted Christmas + +Too Many Choices +These Days +Armageddon's Raid +Single Ladies (Put A Ring On It) +Get On Top (Album Version) +Rudeboy +ZZZ