From 0677bbd958f57089f69bd0e5cfdfcbb6a8ce5c52 Mon Sep 17 00:00:00 2001
From: Brandon Rodriguez <brodriguez8774@gmail.com>
Date: Thu, 14 Sep 2017 20:13:24 -0400
Subject: [PATCH] Add script as proof of working assignment

---
 a0Script       | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++
 test-input.txt | 14 ++++++++++++
 2 files changed, 74 insertions(+)
 create mode 100644 a0Script
 create mode 100644 test-input.txt

diff --git a/a0Script b/a0Script
new file mode 100644
index 0000000..8af4e0e
--- /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/a0brodriguez8774@DevLaptop:~/Classes/CS3240/Assignments/a0$ make all
+gcc -Wall -Wpedantic -std=c99 *.c -g -o 3240Assignment0
+Main.c: In function ‘initialize_data’:
+Main.c:215:21: warning: implicit declaration of function ‘strdup’ [-Wimplicit-function-declaration]
+         temp_song = strdup(buffer);
+                     ^
+Main.c:215:19: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
+         temp_song = strdup(buffer);
+                   ^
+Main.c:220:25: warning: implicit declaration of function ‘strsep’ [-Wimplicit-function-declaration]
+         while ((token = strsep(&temp_song, ",")) != NULL) {
+                         ^
+Main.c:220:23: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
+         while ((token = strsep(&temp_song, ",")) != NULL) {
+                       ^
+]0;brodriguez8774@DevLaptop: ~/Classes/CS3240/Assignments/a0brodriguez8774@DevLaptop:~/Classes/CS3240/Assignments/a0$ ./23240Assignment0 
+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/a0brodriguez8774@DevLaptop:~/Classes/CS3240/Assignments/a0$ 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 0000000..e5967bf
--- /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
-- 
GitLab