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/gastro2/src/plots.c

    r21153 r27611  
    6161  DonePlotting (&gv, 2);
    6262  fprintf (stderr, "type return to continue");
    63   fscanf (stdin, "%c", &c);
     63  if (fscanf (stdin, "%c", &c) != 1) fprintf (stderr, "\n");
    6464  free (xv);
    6565  free (yv);
     
    117117  DonePlotting (&graphdata, Xg[version]);
    118118  fprintf (stderr, "type return to continue");
    119   fscanf (stdin, "%c", &c);
     119  if (fscanf (stdin, "%c", &c) != 1) fprintf (stderr, "\n");
    120120}
    121121
     
    161161  DonePlotting (&graphdata, 0);
    162162  fprintf (stderr, "type return to continue");
    163   fscanf (stdin, "%c", &c);
     163  if (fscanf (stdin, "%c", &c) != 1) fprintf (stderr, "\n");
    164164}
    165165
     
    245245  DonePlotting (&gf, 1);
    246246  fprintf (stderr, "type return to continue");
    247   fscanf (stdin, "%c", &c);
     247  if (fscanf (stdin, "%c", &c) != 1) fprintf (stderr, "\n");
    248248}
    249249
     
    261261  PlotVector (n, y, 1, 1);
    262262  fprintf (stderr, "type return to continue");
    263   fscanf (stdin, "%c", &c);
     263  if (fscanf (stdin, "%c", &c) != 1) fprintf (stderr, "\n");
    264264
    265265
     
    336336  DonePlotting (&graphdata, 0);
    337337  fprintf (stderr, "type return to continue");
    338   fscanf (stdin, "%c", &c);
     338  if (fscanf (stdin, "%c", &c) != 1) fprintf (stderr, "\n");
    339339
    340340}
Note: See TracChangeset for help on using the changeset viewer.