Skip to content

Commit

Permalink
One visual change
Browse files Browse the repository at this point in the history
  • Loading branch information
tainfante committed Feb 25, 2018
1 parent f3cd1f1 commit 58e2da8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/ServerTCP.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ char **str_split(char *a_str, const char a_delim) {
delim[0] = a_delim;
delim[1] = 0;

/* Count how many elements will be extracted. */
while (*tmp) {
if (a_delim == *tmp) {
count++;
Expand All @@ -155,11 +154,8 @@ char **str_split(char *a_str, const char a_delim) {
tmp++;
}

/* Add space for trailing token. */
count += last_comma < (a_str + strlen(a_str) - 1);

/* Add space for terminating null string so caller
knows where the list of returned strings ends. */
count++;

result = malloc(sizeof(char *) * count);
Expand Down Expand Up @@ -247,8 +243,6 @@ char *splitListAgain(struct number *el) {
return output;
}


/* Function to print nodes in a given linked list */
void printList(struct number *start) {
struct number *temp = start;
printf("\nList of the elements:\n");
Expand Down Expand Up @@ -311,7 +305,6 @@ void sortup(struct number *el) {
struct number *ptr1;
struct number *lptr = NULL;

/* Checking for empty list */
if (ptr1 == NULL)
return;

Expand All @@ -332,8 +325,6 @@ void sortup(struct number *el) {

}


/* function to swap goodThing of two element a and b*/
void swap(struct number *a, struct number *b) {
double temp = a->currentnumber;
a->currentnumber = b->currentnumber;
Expand Down

0 comments on commit 58e2da8

Please sign in to comment.