Manual Page Result
0
Command: bintobcd | Section: 9 | Source: NetBSD | File: bintobcd.9
BCDTOBIN(9) FreeBSD Kernel Developer's Manual BCDTOBIN(9)
NAME
bcdtobin, bintobcd - convert a single byte between (unsigned) packed bcd
and binary
SYNOPSIS
#include <sys/systm.h>
unsigned int
bcdtobin(unsigned int bcd);
unsigned int
bintobcd(unsigned int bin);
DESCRIPTION
The bcdtobin() and bintobcd() functions convert a single byte between
(unsigned) packed bcd and binary encodings.
RETURN VALUES
The bcdtobin() function returns the binary value of its BCD-encoded
argument, bcd. The bintobcd() function returns the BCD encoding of its
binary argument, bin.
FreeBSD 14.1-RELEASE-p8 March 11, 2006 FreeBSD 14.1-RELEASE-p8