IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 3, 2013, 2:08:28 PM (13 years ago)
Author:
eugene
Message:

add some init functions for tables and matrices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits/table/F_create_T.c

    r27435 r35756  
    11# include <ohana.h>
    22# include <gfitsio.h>
     3
     4/*********************** fits init table *******************************/
     5int gfits_init_table (FTable *table) {
     6  table[0].header = NULL;
     7  table[0].buffer = NULL;
     8  table[0].datasize = 0;
     9  table[0].validsize = 0;
     10  return (TRUE);
     11
     12}
     13
     14/*********************** fits init table *******************************/
     15int gfits_init_vtable (VTable *table) {
     16
     17  table[0].header   = NULL;
     18  table[0].buffer   = NULL;
     19  table[0].row      = NULL;
     20  table[0].Nrow     = 0;
     21  table[0].datasize = 0;
     22  table[0].pad      = 0;
     23  return (TRUE);
     24}
    325
    426/*********************** fits create table *******************************/
Note: See TracChangeset for help on using the changeset viewer.