Changeset 7054 for trunk/Ohana/src/libfits/header/F_print.c
- Timestamp:
- May 3, 2006, 12:01:09 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libfits/header/F_print.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libfits/header/F_print.c
r7039 r7054 2 2 # include <gfitsio.h> 3 3 4 int fits_print (Header *header, char *field, char *mode, int N,...) {4 int gfits_print (Header *header, char *field, char *mode, int N,...) { 5 5 6 6 /* this function expects one more argument, the value to be written */ … … 14 14 15 15 if (mode[0] != '%') { 16 fprintf (stderr, " fits_print: weird mode: %s\n", mode);16 fprintf (stderr, "gfits_print: weird mode: %s\n", mode); 17 17 return (FALSE); 18 18 } 19 19 20 20 /* this is supposed to create a new field, not modify an old one. */ 21 p = fits_header_field (header, field, N);21 p = gfits_header_field (header, field, N); 22 22 if (p != NULL) return (FALSE); 23 23 24 24 /* find the END of the header */ 25 p = fits_header_field (header, "END", 1);25 p = gfits_header_field (header, "END", 1); 26 26 if (p == NULL) return (FALSE); 27 27 … … 31 31 REALLOCATE (header[0].buffer, char, header[0].size); 32 32 /* re-find the "END" marker, in case new memory block is used */ 33 p = fits_header_field (header, "END", 1);33 p = gfits_header_field (header, "END", 1); 34 34 if (p == NULL) return (FALSE); 35 35 memset (p + FT_LINE_LENGTH, ' ', FT_RECORD_SIZE); … … 90 90 */ 91 91 92 /* can't write the comment in fits_print - usefits_modify */92 /* can't write the comment in gfits_print - use gfits_modify */ 93 93 if (!strcmp (mode, "%C")) return (FALSE); 94 94
Note:
See TracChangeset
for help on using the changeset viewer.
