TwiceAsNice  2019-02-18
Functions
fitskey.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "fitscat_defs.h"
#include "fitscat.h"
Include dependency graph for fitskey.c:

Functions

int add_key (keystruct *key, tabstruct *tab, int pos)
 
int blank_keys (tabstruct *tab)
 
int copy_key (tabstruct *tabin, char *keyname, tabstruct *tabout, int pos)
 
void free_key (keystruct *key)
 
keystructnew_key (char *keyname)
 
keystructread_key (tabstruct *tab, char *keyname)
 
void read_keys (tabstruct *tab, char **keynames, keystruct **keys, int nkeys, BYTE *mask)
 
int remove_key (tabstruct *tab, char *keyname)
 
int remove_keys (tabstruct *tab)
 
keystructname_to_key (tabstruct *tab, char *keyname)
 
char ** keys_list (tabstruct *tab, int *n)
 
keystructpos_to_key (tabstruct *tab, int pos)
 
void show_keys (tabstruct *tab, char **keynames, keystruct **keys, int nkeys, BYTE *mask, FILE *stream, int strflag, int banflag, int leadflag, output_type o_type)
 

Function Documentation

◆ add_key()

int add_key ( keystruct key,
tabstruct tab,
int  pos 
)

◆ blank_keys()

int blank_keys ( tabstruct tab)

◆ copy_key()

int copy_key ( tabstruct tabin,
char *  keyname,
tabstruct tabout,
int  pos 
)

◆ free_key()

void free_key ( keystruct key)

◆ keys_list()

char** keys_list ( tabstruct tab,
int *  n 
)

◆ name_to_key()

keystruct* name_to_key ( tabstruct tab,
char *  keyname 
)

◆ new_key()

keystruct* new_key ( char *  keyname)

◆ pos_to_key()

keystruct* pos_to_key ( tabstruct tab,
int  pos 
)

◆ read_key()

keystruct* read_key ( tabstruct tab,
char *  keyname 
)

! It is not necessarily the original table

◆ read_keys()

void read_keys ( tabstruct tab,
char **  keynames,
keystruct **  keys,
int  nkeys,
BYTE mask 
)

! It is not necessarily the original table

◆ remove_key()

int remove_key ( tabstruct tab,
char *  keyname 
)

◆ remove_keys()

int remove_keys ( tabstruct tab)

◆ show_keys()

void show_keys ( tabstruct tab,
char **  keynames,
keystruct **  keys,
int  nkeys,
BYTE mask,
FILE *  stream,
int  strflag,
int  banflag,
int  leadflag,
output_type  o_type 
)