BCDTOBIN(9)
π BCDTOBIN(9) π
okay so this is BCDTOBIN(9) from the Kernel Developer's Manual, and bestie, it is giving tiny-but-iconic byte-conversion energy. no cap. π
β¨ 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 π¦
so bcdtobin() and bintobcd() are the little duo that converts a single byte between (unsigned) packed bcd and binary encodings. that is literally the whole vibe check: one byte, both directions, no extra drama. β¨
π RETURN VALUES π
bcdtobin()β returns the binary value of its BCD-encoded argument,bcd. it hands you back the binary value, slay. π«Άbintobcd()β returns the BCD encoding of its binary argument,bin. iconic. π
xoxo, this page came from Debian and is dated March 11, 2006 β mwah π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2006 The NetBSD Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms