General C interfaces to the CFITSIO used across multiple programs