Skip to content
Snippets Groups Projects
Commit 0677bbd9 authored by Brandon Rodriguez's avatar Brandon Rodriguez
Browse files

Add script as proof of working assignment

parent 26ffdc92
Branches
No related merge requests found
a0Script 0 → 100644
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
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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment