- Timestamp:
- Jun 8, 2015, 11:46:15 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/libfits/table/F_table_varlength.c
r38425 r38429 119 119 void *gfits_varlength_column_pointer (FTable *ftable, VarLengthColumn *column, off_t row, off_t *length) { 120 120 121 void *result;122 off_t offset, Nx;123 124 121 if ((column->mode != 'P') && (column->mode != 'Q')) abort(); 125 122 126 123 // find the values for the specified row 127 124 // the values in the main table for this row and varlength column: 128 Nx = ftable->header->Naxis[0]; 125 off_t Nx = ftable->header->Naxis[0]; 126 off_t offset = 0; 129 127 130 128 if (column->mode == 'P') { … … 143 141 // fprintf (stderr, "length: %d, offset: %d\n", (int) *length, (int) offset); 144 142 145 result = (void *) (ftable->buffer + ftable->heap_start + offset);143 void *result = (void *) (ftable->buffer + ftable->heap_start + offset); 146 144 return result; 147 145 }
Note:
See TracChangeset
for help on using the changeset viewer.
