unsigned int
bcdtobin(unsigned int bcd)
unsigned int
bintobcd(unsigned int bin)
)
and
bintobcd()
functions
convert a single byte between (unsigned) packed bcd and binary
encodings.
)
function
returns the binary value of its BCD-encoded argument,
bcd.
The
bintobcd()
function returns the BCD encoding of its binary argument,
bin.