The example C routines are adapted from the online software for the NOAO/IRAF Save the Bits archive (ref. 8).