Changeset 3402 for trunk/Ohana/src/opihi/dvo/LoadImages.c
- Timestamp:
- Mar 9, 2005, 9:23:49 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/LoadImages.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/LoadImages.c
r3393 r3402 1 1 # include "dvo.h" 2 2 3 Image *LoadImages (int * Nimage) {3 Image *LoadImages (int *nimage) { 4 4 5 5 char filename[256]; 6 int nimage, NIMAGE;6 int Nimage, NIMAGE; 7 7 FILE *f; 8 8 Header header; … … 11 11 VarConfig ("IMAGE_CATALOG", "%s", filename); 12 12 13 *nimage = 0; 13 14 NIMAGE = 0; 14 15 Nimage = 0; … … 37 38 ALLOCATE (image, Image, NIMAGE); 38 39 fseek (f, header.size, SEEK_SET); 39 nimage = Fread (image, sizeof(Image), NIMAGE, f, "image");40 if ( nimage != NIMAGE) {41 fprintf (stderr, "failed to read in all images (%d of %d)\n", nimage, NIMAGE);40 Nimage = Fread (image, sizeof(Image), NIMAGE, f, "image"); 41 if (Nimage != NIMAGE) { 42 fprintf (stderr, "failed to read in all images (%d of %d)\n", Nimage, NIMAGE); 42 43 } 43 44 44 45 fclose (f); 45 * Nimage = nimage;46 *nimage = Nimage; 46 47 return (image); 47 48 }
Note:
See TracChangeset
for help on using the changeset viewer.
