DC_DESCRIPTOR_GET_PRODUCT(3)
π dc_descriptor_get_product(3) π
okay so welcome to the dc_descriptor_get_product(3) page, bestie β it lives in the Library Functions Manual and it's literally here to help you read a dive computer descriptor's product name. slay.
πΈ NAME πΈ
dc_descriptor_get_product β get the product of a dive computer descriptor. no cap, that's the whole vibe.
π LIBRARY π
library βlibdivecomputerβ β yes, that one. π
β¨ SYNOPSIS β¨
#include <libdivecomputer/descriptor.h>
const char *
dc_descriptor_get_product(const dc_descriptor_t *descriptor);
π«Ά DESCRIPTION π«Ά
Gets the product of a dive computer descriptor β like, for example, the string D6i for my Suunto β or NULL if none was declared. it's giving "tell me what model this is" energy.
π RETURN VALUES π
This returns the nil-terminated product string, or NULL if none exists.
β οΈ heads up bestie: the returned pointer is not valid after the descriptor has been freed. like, expired-link energy β do not touch it after that. fr fr.
π SEE ALSO π
dc_descriptor_get_vendor(3)β another page to check out.
π AUTHORS π
The library βlibdivecomputerβ library was written by Jef Driesen, jef@libdivecomputer.org. The manpages were written by Kristaps Dzonsons, kristaps@bsd.lv.
made with π on Debian, January 5, 2017 β page DC_DESCRIPTOR_GET_PRODUCT(3), periodt. π
π¦ where this page comes from
- nixos 26.05: libdivecomputer 0.9.0
- nixpkgs unstable: libdivecomputer 0.9.0
- Copyright (C) 2017 Kristaps Dzonsons <kristaps@bsd.lv>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms