DC_DESCRIPTOR_GET_MODEL(3)
π
DC_DESCRIPTOR_GET_MODEL(3) β Library Functions Manual π
okay bestie, this oneβs a tiny little manpage from the Library Functions Manual, and itβs lowkey just here to tell you how to grab the model number off a dive computer descriptor. β¨
πΈ NAME πΈ
dc_descriptor_get_model β get the model of a dive computer descriptor π«Ά
π«Ά LIBRARY π«Ά
library libdivecomputer β thatβs the library, no cap. π
β¨ SYNOPSIS β¨
#include <libdivecomputer/descriptor.h>
unsigned int
dc_descriptor_get_model(const dc_descriptor_t *descriptor);
π DESCRIPTION π
This function gets the model number of a dive computer descriptor. If thereβs no model defined for the computer, it gives you 0. And yes β 0 is also a valid model number, so donβt assume 0 automatically means βnothing here.β Itβs giving double duty. π
π RETURN VALUES π
It returns the model number, or 0 if none exists. Thatβs the whole return situation. π
π¦ SEE ALSO π¦
π AUTHORS π
The library libdivecomputer was written by Jef Driesen, jef@libdivecomputer.org. The manpages were written by Kristaps Dzonsons, kristaps@bsd.lv. Absolute icons, fr fr. π«Ά
π page source/version: Debian Β· date: August 19, 2018 Β· mwah, bestie ππ
π¦ where this page comes from
- nixos 26.05: libdivecomputer 0.9.0
- nixpkgs unstable: libdivecomputer 0.9.0
- Copyright (C) 2018 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