Changeset 7054 for trunk/Ohana/src/libfits/table/F_write_T.c
- Timestamp:
- May 3, 2006, 12:01:09 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libfits/table/F_write_T.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libfits/table/F_write_T.c
r7039 r7054 3 3 4 4 /*********************** fits write header *********************************/ 5 int fits_write_table (char *filename, FTable *table) {5 int gfits_write_table (char *filename, FTable *table) { 6 6 7 7 FILE *f; … … 14 14 15 15 status = fseek (f, 0, SEEK_END); /* write table to end of file! */ 16 status = fits_fwrite_table (f, table);16 status = gfits_fwrite_table (f, table); 17 17 18 18 fclose (f); … … 21 21 22 22 /*********************** fits write table *********************************/ 23 int fits_fwrite_table (FILE *f, FTable *table) {23 int gfits_fwrite_table (FILE *f, FTable *table) { 24 24 25 25 int Nbytes; … … 32 32 33 33 /*********************** fits write virtual table *********************************/ 34 int fits_fwrite_vtable (FILE *f, VTable *table) {34 int gfits_fwrite_vtable (FILE *f, VTable *table) { 35 35 36 36 int i, Nx, Ny, Npad, offset, start; … … 40 40 Nrow = table[0].Nrow; 41 41 row = table[0].row; 42 fits_scan (table[0].header, "NAXIS1", "%d", 1, &Nx);43 fits_scan (table[0].header, "NAXIS2", "%d", 1, &Ny);42 gfits_scan (table[0].header, "NAXIS1", "%d", 1, &Nx); 43 gfits_scan (table[0].header, "NAXIS2", "%d", 1, &Ny); 44 44 45 45 /* file pointer is at beginning of desired table data */
Note:
See TracChangeset
for help on using the changeset viewer.
