[comp.lang.c] PACKED fields to unpacked

ela@bdgltd.uucp (Ed Ackerman Programmer) (08/14/90)

I am trying to take a 9 track tape from an IBM mainframe and convert it
to a straight ACSII file. The problem is that some (Most) of the fields
are in packed decimal format ie. COMP-3. I can handle the text translation
and I can handle the byte swaping (MSB-LSB) the problem is in unpacking
the fields. DOes anyone have any advice on the best way to handle this??

All help welcome

-----------------------------------------------------------------------------
Ed Ackerman                               | It is impossible to make anything
bdgltd!ela@dsi.com or ...!dsinc!bdgltd!ela|  foolproof beacause fools are  
#include <StdDisclaimer>                  |           SO ingenious!