ppc_fgets_demo, a C code which demonstrates how the fgets() function transfers data from a file to an internal C buffer, from Rouben Rostamian's "Programming Projects in C";
The computer code and data files described and made available on this web page are distributed under the MIT license
ppc_fgets_demo is available in a C version.