Changeset 9740 for trunk/stac/src/stacRead.c
- Timestamp:
- Oct 24, 2006, 2:27:29 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stacRead.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stacRead.c
r8783 r9740 17 17 int nFiles = filenames->n; // The number of input files 18 18 psArray *images = psArrayAlloc(nFiles); // The input files, to be returned 19 images->n = nFiles;20 19 assert(!headers || ! *headers || (*headers)->n == nFiles); 21 20 if (headers && ! *headers) { 22 21 *headers = psArrayAlloc(nFiles); 23 (*headers)->n = nFiles;24 22 } 25 23 … … 75 73 psTrace("stac.read.coords", 5, "Reading coordinate file, %s\n", filename); 76 74 77 psArray *coords = psArrayAlloc (BUFFER); // The array of coordinates to be returned75 psArray *coords = psArrayAllocEmpty(BUFFER); // The array of coordinates to be returned 78 76 float x, y; // Coordinates to read 79 77 while (fscanf(file, "%f %f\n", &x, &y) == 2) { … … 188 186 int nFiles = filenames->n; // The number of input files 189 187 psArray *maps = psArrayAlloc(nFiles); // The maps, to be returned 190 maps->n = nFiles;191 188 char mapfile[MAXCHAR]; // Filename of map 192 189
Note:
See TracChangeset
for help on using the changeset viewer.
