I have a file stream called "src" and I am reading in lines from that file. The file contains information about sms messages. The very first line tells us, how many messages are stored in the file. Then, every message takes up two lines: the first line containing information about the date of reception and the sender, the second line containing the message itself, with a length of 100 chars at maximum. The file contains 30 messages, thus it is 60+1 lines long. My task is, to tell which message is the shortest, and which one is the longest. I have started with this code:
I am trying to assign a character array returned by fgets() to another character array. Both of them are of the same length, 100 chars. The compiler keeps telling me, that there is an "invalid lvalue assignment". What am I doing wrong?
...even more code...