This is a discussion on Struct File and array problem Please help within the C Programming forums, part of the General Programming Boards category; Originally Posted by caroundw5h you could make it even more compact Code: #define FLUSH while ( (getchar() ! = '\n') ...
I agree whole heartedly, the objective on my part wasn't to offer a quick fix and forget potential future issues, it was to generate compact code for the task at hand. Why declare a long, when a int with do?Getting code shorter by adding more bugs is not a good way to program
The redirection can happen from the terminal/console/command prompt, not just the code.Originally Posted by caroundw5h
vart's point is about correctness. It might be a little paranoid, but the "overkill" will have no impact on performance anyway, and remains readable.Originally Posted by caroundw5h