DC_BLUETOOTH_ADDR2STR(3)
π¦ 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
- nixos 26.05: libdivecomputer 0.9.0
- nixpkgs unstable: libdivecomputer 0.9.0
- Copyright (C) 2020 Vincent Hagen <vinnie@script4web.nl>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms