Talk:Bitmap/Read a PPM file

From Rosetta Code
Revision as of 17:35, 15 January 2009 by Ce (talk | contribs) (C code is missing information)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The C code uses a type image and functions alloc_img and free_img, which are nowhere defined (they are definitively not part of standard C). I guess they come from some library; in that case

  • the needed library should be given
  • the necessary #include should be added to the samples (A quick guess: The commented-out #include "imglib.h" from the calling example code might provide those types; maybe "imglib" is even the name of that library)

The same is also true for the related tasks, of course. --Ce 17:35, 15 January 2009 (UTC)