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

Functions

void error (int num, char *msg1, char *msg2)
 
void error_installfunc (void(*func)(char *msg1, char *msg2))
 
void warning (char *msg1, char *msg2)
 
char * warning_history (void)
 
void swapbytes (void *ptr, int nb, int n)
 
int wstrncmp (char *cs, char *ct, int n)
 
int findkey (char *str, char *key, int size)
 
int findnkey (char *str, char *key, int size, int nkey)
 

Variables

static void(* errorfunc )(char *msg1, char *msg2) = NULL
 
static char warning_historystr [WARNING_NMAX][192] ={""}
 
static int nwarning = 0
 
static int nwarning_history = 0
 
static int nerror = 0
 

Function Documentation

◆ error()

void error ( int  num,
char *  msg1,
char *  msg2 
)

◆ error_installfunc()

void error_installfunc ( void(*)(char *msg1, char *msg2)  func)

◆ findkey()

int findkey ( char *  str,
char *  key,
int  size 
)

◆ findnkey()

int findnkey ( char *  str,
char *  key,
int  size,
int  nkey 
)

◆ swapbytes()

void swapbytes ( void *  ptr,
int  nb,
int  n 
)

◆ warning()

void warning ( char *  msg1,
char *  msg2 
)

◆ warning_history()

char* warning_history ( void  )

◆ wstrncmp()

int wstrncmp ( char *  cs,
char *  ct,
int  n 
)

Variable Documentation

◆ errorfunc

void(* errorfunc) (char *msg1, char *msg2) = NULL
static

◆ nerror

int nerror = 0
static

◆ nwarning

int nwarning = 0
static

◆ nwarning_history

int nwarning_history = 0
static

◆ warning_historystr

char warning_historystr[WARNING_NMAX][192] ={""}
static