DC_BUFFER_APPEND(3)

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

πŸ’– DC_BUFFER_APPEND(3) πŸ’–

okay bestie, welcome to the Library Functions Manual entry for dc_buffer_append β€” it's giving β€œtiny but essential buffer behavior,” and we're gonna read it together. πŸ’…


✨ NAME ✨

dc_buffer_append β€” append to a binary buffer


πŸ¦‹ LIBRARY πŸ¦‹

library β€œlibdivecomputer”


🌸 SYNOPSIS 🌸

#include <libdivecomputer/buffer.h>

int
dc_buffer_append(dc_buffer_t *buffer, const unsigned char data[],
    size_t size);

πŸŽ€ DESCRIPTION πŸŽ€

okay so here's the vibe: this function appends size bytes of data into the buffer that you previously allocated with dc_buffer_new(3). literally that's the whole main-character job. ✨


πŸ’œ RETURN VALUES πŸ’œ

It returns non-zero on success, or zero on memory exhaustion or if buffer is NULL. so yeah β€” non-zero means slay, zero means something went wrong in the memory/NULL department. 🫢


🌈 SEE ALSO 🌈


πŸ‘‘ AUTHORS πŸ‘‘

The library β€œlibdivecomputer” was written by Jef Driesen, jef@libdivecomputer.org. The manpages were written by Kristaps Dzonsons, kristaps@bsd.lv.


πŸ’Œ cute little sign-off tea: this page's footer energy is Debian, dated January 5, 2017, with the manual title DC_BUFFER_APPEND(3). bye bestie, go append those bytes responsibly πŸ’–

πŸ“¦ where this page comes from