bin2hex(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ bin2hex β€” the manual page, but make it cute ✨

okay so bestie, you're reading bin2hex(9) from the Kernel API Manual and honestly? it's a little icon and it's about to eat. πŸ’… this one's a kernel-level lil guy, so stay with me, it's short and sweet.

🌸 NAME 🌸

bin2hex β€” convert binary data to an ascii hexadecimal string πŸ¦‹

like, literally the glow-up where your crunchy raw bytes get a full makeover into a cute readable ascii hex string. no cap, that's the whole vibe. ✨


πŸŽ€ SYNOPSIS πŸŽ€

char * bin2hex (char *dst , const void *src , size_t count );

here's the exact signature, bestie β€” copy it character for character, do not come for me about the spacing, it's giving authentic. 😭


πŸ’– ARGUMENTS πŸ’–

  • dst β€” the ascii hexadecimal result πŸ’« like this is where the pretty output lives. she's the destination. she's main character energy.
  • src β€” your binary data 🌈 the raw, unglamorous stuff going in.
  • count β€” the binary data length πŸ“ aka how much of src we're working with, bestie. numbers matter.

πŸ‘‘ SEE ALSO πŸ‘‘

if you're obsessed (and you should be), go check out the rest of the family β€” they all live in the kernel file ./lib/hexdump.c:

fr fr, the whole hex-squad is right there. iykyk. 🫢


ngl bestie, this page is short but it's a baddie. read the arguments, respect the arguments, and go convert some binary. periodt. πŸ’€πŸ”₯

and that's the whole thing, angel β€” sign-off time 🧚 source: ./lib, dated October 2026. mwah, go slay your hex conversions πŸ’œπŸŒ·

πŸ“¦ where this page comes from