Changeset 38466 for trunk/Ohana/src/relphot/src/synthetic_zpts.c
- Timestamp:
- Jun 12, 2015, 10:28:36 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/relphot/src/synthetic_zpts.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/src/synthetic_zpts.c
r38062 r38466 7 7 static char *extname[5] = {"map_g", "map_r", "map_i", "map_z", "map_y"}; 8 8 9 SynthZeroPoints *SynthZeroPointsLoad (char *filename) { 9 static SynthZeroPoints *zpts = NULL; 10 11 int SynthZeroPointsLoad (char *filename) { 10 12 11 13 FILE *f = fopen (filename, "r"); 12 14 if (!f) { 13 15 fprintf (stderr, "ERROR: cannot open file %s\n", filename); 14 return NULL;16 return FALSE; 15 17 } 16 18 … … 23 25 // map_y 24 26 25 SynthZeroPoints *zpts = NULL;26 27 ALLOCATE (zpts, SynthZeroPoints, 1); 27 28 … … 29 30 if (VERBOSE) fprintf (stderr, "can't read header\n"); 30 31 fclose (f); 31 return NULL;32 return FALSE; 32 33 } 33 34 … … 49 50 zpts->Ny = zpts->matrix[0].Naxis[1]; 50 51 52 return TRUE; 53 } 54 55 SynthZeroPoints *SynthZeroPointsGet () { 51 56 return zpts; 52 57 } 53
Note:
See TracChangeset
for help on using the changeset viewer.
