Does fgets on a mac read until a carriage return '\r' or does it also depend on the new line '\n'?
Reason is I am using fgets to read a file a line at a time. However if it is run on a mac file with only '\r' for the line ending it fails to do what I want. (run in linux)
I don't want to be writing library type functions to deal with cross compatibility issues. Is there another standard function that I could use instead?