DC_PARSER_DESTROY(3)

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

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