C Standard Library Extensions: FITS data block MD5 computation routine

C Standard Library Extensions 6.2.0

- Main Page
- Modules
- Classes
- Files

Functions
FITS data block MD5 computation routine

## Functions
const char * | qfits_datamd5 (const char *filename)
| Compute the MD5 hash of data zones in a FITS file.

## Detailed Description

This module offers MD5 computation over all data areas of a FITS file.

## Function Documentation

const char* qfits_datamd5 | ( | const char * | filename | ) |

Compute the MD5 hash of data zones in a FITS file.

Parameters:

  filename | Name of the FITS file to examine.

Returns:
  1 statically allocated character string, or NULL.

This function expects the name of a FITS file. It will compute the MD5 hash on all data blocks in the main data section and possibly extensions (including zero-padding blocks if necessary) and return it as a string suitable for inclusion into a FITS keyword.

The returned string is statically allocated inside this function, so do not free it or modify it. This function returns NULL in case of error.

Referenced by qfits_save_table_hdrdump().