IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 5, 2010, 3:47:36 PM (16 years ago)
Author:
eugene
Message:

pendatic checking fscan, system, and mkstemp return values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/gastro/src/gcenter.c

    r5386 r27611  
    7979    fprintf (stderr, "plotting %d points\n", Nvect);
    8080    fprintf (stderr, "type return to continue");
    81     fscanf (stdin, "%c", &c);
     81    if (fscanf (stdin, "%c", &c) != 1) {
     82      fprintf (stderr, "\n");
     83    }
    8284    Nvect = 0;
    8385  }
     
    166168      fprintf (stderr, "plotting %d points\n", Nvect);
    167169      fprintf (stderr, "type return to continue");
    168       fscanf (stdin, "%c", &c);
     170      if (fscanf (stdin, "%c", &c) != 1) {
     171        fprintf (stderr, "\n");
     172      }
    169173      Nvect = 0;
    170174    }
Note: See TracChangeset for help on using the changeset viewer.