DC_BLUETOOTH_ADDR2STR(3)

πŸ“¦ version 0.9.0, in nixos 26.05, nixpkgs unstable

πŸ¦‹ DC_BLUETOOTH_ADDR2STR(3) β€” the manual page bestie πŸ¦‹

omg hi bestie!! welcome to the Library Functions Manual, section 3 β€” this is the DC_BLUETOOTH_ADDR2STR(3) page, and we're literally just here to turn a bluetooth address into a string. iconic behavior, no cap ✨


✨ NAME ✨

dc_bluetooth_addr2str β€” convert a bluetooth address to a string. that's it, that's the vibe πŸ’…


πŸ“š LIBRARY πŸ“š

library β€œlibdivecomputer” β€” yes bestie, that's the one 🫢


πŸ› οΈ SYNOPSIS πŸ› οΈ

#include <libdivecomputer/bluetooth.h>

const char*
dc_bluetooth_addr2str(dc_bluetooth_address_t address, char *str,
    size_t size);

🌸 DESCRIPTION 🌸

okay so, this function converts a bluetooth address to a string. simple, clean, slay πŸ’–

the bluetooth address is formatted as XX:XX:XX:XX:XX:XX, where each XX is a hexadecimal number specifying an octet of the 48-bit address. highkey important detail, bestie πŸ”₯

the minimum size for the buffer is DC_BLUETOOTH_SIZE bytes. don't forget that, fr fr πŸŽ€

the reverse can be done with dc_bluetooth_str2addr(3). yep, they're a little duo πŸ¦‹


⭐ RETURN VALUES ⭐

returns the bluetooth address represented as a string. that's the whole return value, and it ate πŸ’…βœ¨


πŸ‘€ SEE ALSO πŸ‘€


πŸ‘‘ AUTHORS πŸ‘‘

  • the library β€œlibdivecomputer” library was written by Jef Driesen, jef@libdivecomputer.org.
  • this manpage is written by Vincent Hagen, vinnie@script4web.nl.

this page is from Debian, dated June 5, 2020. mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from