I'd appreciate any help given. I need to store and sort some records; which are composed by various subfields. There is no limitation of the subfields and records. As an example input;
62gDF345 AnDeRs Friden vocalist 3334455
Eh43 JeSPer guitarist swedish
b Raptors11 Bosh
aaaaa Nets33 Kidd 21 1994 March 22
I need to take these inputs, store and sort them(The first subfield of every line is ID and I need to sort them in descending order) . The problem is, I can't take inputs on pointer arrays, since there is no limitation on the number of the lines or subfields. After I take them, I can sort them with strcmp, but I can't take them with neither scanf nor getchar. I'm a newbie to the c and all helps will be welcome .