/* * Copyright 2008 Johannes Hofmann * * This software may be used and distributed according to the terms * of the GNU General Public License, incorporated herein by reference. */ #include struct pnm { int format; int width; int height; int maxval; }; int readPnmHeader(FILE *fp, struct pnm *h); int writePnmHeader(FILE *fp, const struct pnm *h);