DC_BUFFER_APPEND(3)
π 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
- 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