% o exception: return any errors or warnings in this structure.
%
*/
-static void PNMComment(Image *image,ExceptionInfo *exception)
+static int PNMComment(Image *image,ExceptionInfo *exception)
{
int
c;
}
}
if (comment == (char *) NULL)
- return;
+ return(c);
(void) SetImageProperty(image,"comment",comment,exception);
comment=DestroyString(comment);
+ return(c);
}
static unsigned int PNMInteger(Image *image,const unsigned int base,
if (c == EOF)
return(0);
if (c == (int) '#')
- PNMComment(image,exception);
+ c=PNMComment(image,exception);
} while ((c == ' ') || (c == '\t') || (c == '\n') || (c == '\r'));
if (base == 2)
return((unsigned int) (c-(int) '0'));
/*
Comment.
*/
- PNMComment(image,exception);
+ c=PNMComment(image,exception);
c=ReadBlobByte(image);
while (isspace((int) ((unsigned char) c)) != 0)
c=ReadBlobByte(image);