Conversions from decimal string to quadword (and viceversa)

Bruno Cipolla cipolla at rom01.enet.dec.com
Wed Nov 14 13:51:29 AEST 1990


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)



More information about the Comp.lang.c mailing list