ppc_fetch_line, a C code which transfers lines of text from a file to a buffer, trimming initial and trailing whitespace, and comments, from Rouben Rostamian's "Programming Projects in C";
The code would be most useful when reading a data file, in which extraneous whitespace should be removed, and comments, which begin with a hashmark, should be ignored.
The computer code and data files described and made available on this web page are distributed under the MIT license
ppc_fetch_line is available in a C version.