TwiceAsNice
2019-02-18
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "fitscat_defs.h"
#include "fitscat.h"
Macros | |
#define | ENCODE_OFFSET 0x30 |
Functions | |
void | encode_checksum (unsigned int sum, char *str) |
unsigned int | decode_checksum (char *str) |
unsigned int | compute_blocksum (char *buf, unsigned int sum) |
unsigned int | compute_bodysum (tabstruct *tab, unsigned int sum) |
void | write_checksum (tabstruct *tab) |
int | verify_checksum (tabstruct *tab) |
Variables | |
unsigned int | exclude [13] |
#define ENCODE_OFFSET 0x30 |
unsigned int compute_blocksum | ( | char * | buf, |
unsigned int | sum | ||
) |
unsigned int compute_bodysum | ( | tabstruct * | tab, |
unsigned int | sum | ||
) |
unsigned int decode_checksum | ( | char * | str | ) |
void encode_checksum | ( | unsigned int | sum, |
char * | str | ||
) |
int verify_checksum | ( | tabstruct * | tab | ) |
void write_checksum | ( | tabstruct * | tab | ) |
unsigned int exclude[13] |