IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 3, 2006, 12:01:09 PM (20 years ago)
Author:
eugene
Message:

converted fits_ to gfits_

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits/header/F_print.c

    r7039 r7054  
    22# include <gfitsio.h>
    33
    4 int fits_print (Header *header, char *field, char *mode, int N,...) {
     4int gfits_print (Header *header, char *field, char *mode, int N,...) {
    55 
    66  /* this function expects one more argument, the value to be written */
     
    1414 
    1515  if (mode[0] != '%') {
    16     fprintf (stderr, "fits_print: weird mode:  %s\n", mode);
     16    fprintf (stderr, "gfits_print: weird mode:  %s\n", mode);
    1717    return (FALSE);
    1818  }
    1919
    2020  /* 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);
    2222  if (p != NULL) return (FALSE);
    2323
    2424  /* find the END of the header */
    25   p = fits_header_field (header, "END", 1);
     25  p = gfits_header_field (header, "END", 1);
    2626  if (p == NULL) return (FALSE);
    2727
     
    3131    REALLOCATE (header[0].buffer, char, header[0].size);
    3232    /* 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);
    3434    if (p == NULL) return (FALSE);
    3535    memset (p + FT_LINE_LENGTH, ' ', FT_RECORD_SIZE);
     
    9090  */
    9191
    92   /* can't write the comment in fits_print - use fits_modify */
     92  /* can't write the comment in gfits_print - use gfits_modify */
    9393  if (!strcmp (mode, "%C")) return (FALSE);
    9494
Note: See TracChangeset for help on using the changeset viewer.