Query: bcdtobin
OS: netbsd
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
BCDTOBIN(9) BSD Kernel Developer's Manual BCDTOBIN(9)NAMEbcdtobin, bintobcd -- convert a single byte between (unsigned) packed bcd and binarySYNOPSIS#include <sys/systm.h> unsigned int bcdtobin(unsigned int bcd); unsigned int bintobcd(unsigned int bin);DESCRIPTIONThe bcdtobin() and bintobcd() functions convert a single byte between (unsigned) packed bcd and binary encodings.RETURN VALUESThe bcdtobin() function returns the binary value of its BCD-encoded argument, bcd. The bintobcd() function returns the BCD encoding of its binary argument, bin.BSDMarch 11, 2006 BSD