BCDTOBIN(9)            NetBSD 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 argu-
     ment, bcd.  The bintobcd() function returns the BCD encoding of its
     binary argument, bin.

NetBSD 7.0                      March 11, 2006                      NetBSD 7.0

You can also request any man page by name and (optionally) by section:

Command: 
Section: 
Architecture: 
Collection: 
 

Use the DEFAULT collection to view manual pages for third-party software.


©1994 Man-cgi 1.15, Panagiotis Christias <christia@softlab.ntua.gr>
©1996-2014 Modified for NetBSD by Kimmo Suominen