ppc_fetch_line


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.

Licensing:

The computer code and data files described and made available on this web page are distributed under the MIT license

Languages:

ppc_fetch_line is available in a C version.

Related Data and Programs:

ppc_fetch_line_test

Reference:

  1. Rouben Rostamian,
    Programming Projects in C for Students of Engineering, Science, and Mathematics,
    SIAM, 2014,
    ISBN: 978-1-611973-49-5

Source Code:


Last revised on 07 September 2023.