Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!wuarchive!udel!haven!decuac!bacchus.pa.dec.com!decabo.enet.dec.com!rom01.enet.dec.com!cipolla From: cipolla@rom01.enet.dec.com (Bruno Cipolla) Newsgroups: comp.lang.c Subject: Conversions from decimal string to quadword (and viceversa) Summary: Conversion from string to binary and packed (and viceversa) Message-ID: <129@decabo.enet.dec.com> Date: 14 Nov 90 02:51:29 GMT Sender: news@decabo.enet.dec.com Organization: Digital Equipment Corporation Lines: 19 I need to write some routines performing the following operation: 1 - conversion from a 13 byte string with decimal digits to a 64 bits binary field (quadword) 2 - conversion from 64 bits binary field to string 3 - conversion from string (or 64 bit binary field) to 6 bytes packed decimal (IBM format) 4 - conversion from 6 bytes packed format to string (or 64 bit binary field) Has anyone already done something on these matters? I would appreciate very much to find some routines already tested. Ciao Tonino (From the Bruno account)