Skip to content

Commit

Permalink
Remove debugline
Browse files Browse the repository at this point in the history
  • Loading branch information
tivervac committed Mar 26, 2013
1 parent aa549df commit 0a4185e
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions main.c
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
#include "main.h"

int main(){
{
char *listID = (char*) malloc((MAX_ID_LENGTH + 1) * sizeof(char));
char *url = (char *) malloc(strlen(PREFIX) + 1 * sizeof(char));
strcpy(url, PREFIX);
printf("%s", "Enter the listID (64 chars max): ");
scanf("%64s", listID);
url = construct_url(url, listID);
send_playlist_request(url);
char *listID = (char*) malloc((MAX_ID_LENGTH + 1) * sizeof(char));
char *url = (char *) malloc(strlen(PREFIX) + 1 * sizeof(char));
strcpy(url, PREFIX);
printf("%s", "Enter the listID (64 chars max): ");
scanf("%64s", listID);
url = construct_url(url, listID);
send_playlist_request(url);

free(url);
url = NULL;
free(listID);
listID = NULL;
printf("All downloads completed!\n");
}
_CrtDumpMemoryLeaks();
free(url);
url = NULL;
free(listID);
listID = NULL;
printf("All downloads completed!\n");
}

char* construct_url(char *url, char listID[]){
Expand Down

0 comments on commit 0a4185e

Please sign in to comment.