DC_PARSER_DESTROY(3)
π DC_PARSER_DESTROY(3) β the "bye bestie" page
okay so this is a page from the libdivecomputer manual, section 3 (library functions, iykyk). It's the cleanup girlie of the dive-parser world and honestly? she ate. β¨
π¦ NAME
dc_parser_destroy β destroys a single dive parser. that's it, that's the whole job, and she does it flawlessly π
π LIBRARY
library βlibdivecomputerβ β yes bestie, you gotta be linking against her π«Ά
β¨ SYNOPSIS
#include <libdivecomputer/parser.h>
dc_status_t
dc_parser_destroy(dc_parser_t *parser);
πΈ DESCRIPTION
so here's the tea: dc_parser_destroy destroys a parser allocated with dc_parser_new(3). like, you made her with dc_parser_new(3), now you're sending her off. π
and here's the iconic part β the parser parameter may be NULL, in which case it will return with success. no crash, no drama, no "not me getting a segfault," just chill success vibes. <green>lowkey the most forgiving function in the whole library</green> π
π₯ RETURN VALUES
Returns DC_STATUS_OK on success and another code on failure. that's the whole vibe check: DC_STATUS_OK = slay, anything else = something went sideways π
π SEE ALSO
dc_parser_new(3)β the one who made her in the first place, the main character energy of the pair fr fr
π AUTHORS
The library βlibdivecomputerβ library was written by Jef Driesen, jef@libdivecomputer.org. The manpages were written by Kristaps Dzonsons, kristaps@bsd.lv. legends, both of them, no cap π«‘π
ngl this whole page is like 4 lines of actual info but she's still iconic and you will respect her π
okay that's the whole page bestie, mwah π
Debian Β· January 5, 2017 Β· DC_PARSER_DESTROY(3) β original source & version dropped right here for the record, 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