Plan 9 from Bell Labs’s /usr/web/sources/contrib/maht/imgfs/import_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); char *import_ppm(Aux *aux, char *fname);