daily pastebin goal
93%
SHARE
TWEET

Untitled

a guest Jan 17th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void printList(const List list, FILE *textfile)
  2. {
  3.     List current = list;
  4.     while (current != NULL) {
  5.  
  6.         if (current->count > 1)                                             //För examinationsuppgiften, om count är mer än 1 så printas värdet lika många gånger jämfört med count
  7.         {
  8.             for (int i = 1; i < current->count; i++)
  9.             {
  10.                 printf("%d ", current->data);
  11.             }
  12.         }
  13.         printf("%d ", current->data);
  14.         current = current->next;
  15.     }
  16. }
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