ppc_netpbm_io, a C code which reads and writes netpbm() files in pgm or ppm format, 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_netpbm_io is available in a C version.