I'm using fgets with stdin to read in some data, with the max length I read in being 25. With one of the tests I'm running on this code, there are a few hundred spaces after the data that I want - which causes the program to fail.
Can someone advise me as to how to ignore all of these extra spaces when using fgets and go to the next line?