daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Dec 16th, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct library *deleteBook(struct library* head, char choiceBook[50]){
  2.     struct library *next,*start,*end,*temp,*bfrEnd,*t;
  3.     start = head;
  4.     next = head -> next;
  5.     temp = head;
  6.     end = head;
  7.     bfrEnd = head;
  8.     for (temp = head; temp -> next != NULL; temp = temp->next){
  9.         for(bfrEnd = head; bfrEnd -> next != end; bfrEnd = next -> next ){
  10.             for (end = head; end -> next != NULL; end = end->next){
  11.             }
  12.            
  13.         }
  14.         //start
  15.         if(strcmp(start -> collection.title, choiceBook) == 0){
  16.             copybook(&(start->collection), &(end -> collection));
  17.             next = head;
  18.             bfrEnd -> next = NULL;
  19.             free(end);
  20.        
  21.         }
  22.         //between
  23.         if(strcmp(temp -> collection.title, choiceBook) == 0){
  24.             copybook(&(temp->collection), &(end -> collection));
  25.             bfrEnd -> next = NULL;
  26.             free(end);
  27.         }
  28.        
  29.            
  30.        
  31.     }
  32.    
  33.     if(strcmp(end -> collection.title, choiceBook) == 0){
  34.         bfrEnd -> next = NULL;
  35.         free(end);
  36.     }
  37. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top