Log File Viewer
C programming is a simple process. Do a make, take care of the errors, do a make, take care of the errors, and so on. Unless, you’ve got my job, which is do a make, go to lunch, come back, and see whether three-quarters of a million lines have finished compiling; then look through the huge log file for errors.
To make spotting errors easier, you can create a Perl program that goes through a log file and highlights the errors.
But what constitutes an error? Obviously, a line with the word “Error” on it. But that’s not always true. Sometimes someone produces a module with a name like: STR_Error.c. Compiling this is not an error.
So your program must be flexible in deciding what is an error and what isn’t. You can solve this problem ...
Get Perl for C Programmers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.