Changeset 1916 for branches/c08_branch/source/cdgetlinelist.cpp
- Timestamp:
- 04/04/08 03:02:50 (9 months ago)
- Files:
-
- 1 modified
-
branches/c08_branch/source/cdgetlinelist.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/c08_branch/source/cdgetlinelist.cpp
r1815 r1916 2 2 * others. For conditions of distribution and use see copyright notice in license.txt */ 3 3 /*cdGetLineList routine to read in master list of emission line wavelengths and ids, for 4 * generating loc grids, 5 * someday add cdGetNLRLineList */ 4 * generating loc grids */ 6 5 #include "cddefines.h" 7 6 #include "cddrive.h" … … 38 37 chFilename = ( strlen(chFile) == 0 ) ? "LineList_BLR.dat" : chFile; 39 38 40 /* >>chng 04 nov 06, had searched only on path, now search locally41 * and then on path if not found */42 39 /* we will check local space first, then on path if not present */ 43 40 ioData = open_data( chFilename, "r", AS_LOCAL_DATA_TRY ); 44 41 45 42 if( ioData == NULL ) 43 { 44 /* did not find file, return -1 */ 46 45 return -1; 46 } 47 47 48 48 /* count how many lines are in the file, ignoring all lines … … 69 69 70 70 /* create 1-d array of string labels */ 71 /* create first dim of space for labels */72 71 *chLabels = (char**)MALLOC((size_t)(nLines+1)*sizeof(char *) ); 73 72
