DC_SERIAL_DEVICE_FREE(3)

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

πŸ’… DC_SERIAL_DEVICE_FREE(3) πŸ’…

okay so bestie, welcome to the DC_SERIAL_DEVICE_FREE(3) page from the Library Functions Manual β€” yes that's the manual name, we're fancy here πŸŽ€


✨ NAME ✨

dc_serial_device_free β€” destroy the serial device and free, like, all the resources. every last one. we're not leaving a single byte behind, periodt πŸ’–


πŸ¦‹ LIBRARY πŸ¦‹

library β€œlibdivecomputer” β€” that's the one, that's our girl 🫢


🌸 SYNOPSIS 🌸

#include <libdivecomputer/serial.h>

void
dc_serial_device_free(dc_serial_device_t *device);

like, that's the whole thing. no cap, it's one function 🧚


πŸ’œ DESCRIPTION πŸ’œ

Destroy the serial device and free all resources. that's it, that's the assignment, and she ate πŸ”₯

where do these devices come from, you ask? ok so β€” the serial device is usually found by searching through dc_serial_iterator_new(3). so you go find it, you love it, and then you let it go with this function 😭 it's giving closure.

lowkey important: this is the destroy function, so once you call it, the device is gone and the resources are freed. don't come back for it afterward, bestie πŸ’€

⭐ SEE ALSO ⭐


πŸ‘‘ AUTHORS πŸ‘‘

  • The library β€œlibdivecomputer” library was written by Jef Driesen, jef@libdivecomputer.org. iconic. we stan πŸ’–
  • This manpage is written by Vincent Hagen, vinnie@script4web.nl. also iconic, thank you for your service 🫑✨

and that's a wrap, bestie 🌈 this page dropped with Debian, dated June 5, 2020 β€” mwah, go free those resources responsibly πŸ’…πŸ’–πŸŽ€

πŸ“¦ where this page comes from