Plan 9 from Bell Labs’s /usr/web/sources/contrib/maht/ppm2eps/ppm.h
typedef struct RGBint RGBint; struct RGBint { int maxcol; int width; int height; int *r; int *g; int *b; }; RGBint *readppm(Biobuf *b); RGBint *free_rgb(RGBint *rgb); void eightbit(RGBint *rgb);