DC_DESCRIPTOR_GET_MODEL(3)

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

πŸ’… 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