Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LIST *ReturnCertainIncomeArtistList(LIST *root, float income)
- {
- LIST *newList = NULL;
- LIST *curr = root;
- while (curr != NULL)
- {
- if (curr->artist.income > income)
- {
- newList->artist = curr->artist;
- newList->next = malloc(sizeof(newList));
- newList = newList->next;
- }
- curr = curr->next;
- }
- return newList;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement