IMG_pnm.c
changeset 587 32a18ca05935
parent 575 36e9e2255178
child 591 90a531f221f2
equal deleted inserted replaced
586:19beb4a1bb54 587:32a18ca05935
    71     number = 0;
    71     number = 0;
    72 
    72 
    73     /* Skip leading whitespace */
    73     /* Skip leading whitespace */
    74     do {
    74     do {
    75         if ( ! SDL_RWread(src, &ch, 1, 1) ) {
    75         if ( ! SDL_RWread(src, &ch, 1, 1) ) {
    76             return(0);
    76             return(-1);
    77         }
    77         }
    78         /* Eat comments as whitespace */
    78         /* Eat comments as whitespace */
    79         if ( ch == '#' ) {  /* Comment is '#' to end of line */
    79         if ( ch == '#' ) {  /* Comment is '#' to end of line */
    80             do {
    80             do {
    81                 if ( ! SDL_RWread(src, &ch, 1, 1) ) {
    81                 if ( ! SDL_RWread(src, &ch, 1, 1) ) {