Changeset 7054 for trunk/Ohana/src/libfits/table/F_table_column.c
- Timestamp:
- May 3, 2006, 12:01:09 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libfits/table/F_table_column.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libfits/table/F_table_column.c
r7039 r7054 3 3 4 4 /*********************** fits table column ****************************/ 5 int fits_table_column (Table *table, char *field, char *mode,...) {5 int gfits_table_column (Table *table, char *field, char *mode,...) { 6 6 /* we expect one more field: the pointer to the array we read in */ 7 7 … … 19 19 for (i = 0; i < table[0].Nfields; i++) { 20 20 sprintf (string, "TTYPE%d\0", i+1); 21 fits_scan (&table[0].header, string, "%s", 1, this_field);21 gfits_scan (&table[0].header, string, "%s", 1, this_field); 22 22 if (!strcmp (field, this_field)) { 23 23 break; … … 33 33 34 34 sprintf (string, "TBCOL%d\0", N); 35 fits_scan (&table[0].header, string, "%d", 1, &start);35 gfits_scan (&table[0].header, string, "%d", 1, &start); 36 36 sprintf (string, "TFORM%d\0", N); 37 fits_scan (&table[0].header, string, "%s", 1, form);37 gfits_scan (&table[0].header, string, "%s", 1, form); 38 38 /* we could use some error checking from the FITS table form, but 39 39 it is not immediately crucial */ … … 43 43 } else { 44 44 sprintf (string, "TBCOL%d\0", N+1); 45 fits_scan (&table[0].header, string, "%d", 1, &end);45 gfits_scan (&table[0].header, string, "%d", 1, &end); 46 46 } 47 47 width = end - start; … … 88 88 break; 89 89 default: 90 fprintf (stderr, "unknown fits_table_column mode: %s\n", mode);90 fprintf (stderr, "unknown gfits_table_column mode: %s\n", mode); 91 91 return (FALSE); 92 92 }
Note:
See TracChangeset
for help on using the changeset viewer.
