Fill This Form To Receive Instant Help
Homework answers / question archive / Parse each line (entry) in the file into a card struct
Parse each line (entry) in the file into a card struct. See the included header file for a definition. Put this into a card.h file and include it in your code file!
When encountering a duplicate (a card with the same name as a card already read), you must check the card id field and keep the card with the highest id value!
Once the entire dataset is in memory, sort them by card name using qsort(). The output width should be 52 characters, the description is not bounded by this.
Output the sorted entries to stdout