QB_ARRAY_GROW(3)
π NAME π
qb_array_grow β grow the array. bestie, that's literally it, and yet. π
it's from the libqb Programmer's Manual (section 3, the library calls girlies π«Ά).
πΈ SYNOPSIS πΈ
#include <qb/qbarray.h>
int32_t qb_array_grow(
qb_array_t *a, /* array instance */
size_t max_elements /* the new maximum size of the array */
);
so you pull in the header, you hand it an array, you tell it how big you want the array to be, and it does the thing. iconic behavior honestly β¨
π PARAMS π
aβ the array instance itself. your actual array. the main character of this whole function. πmax_elementsβ the new maximum size of the array. like, the new one. the glow-up size. π
π¦ DESCRIPTION π¦
okay so. not a single word in this section on the original page. the manpage authors really said "figure it out" and left it blank. π no cap, i'm not making this up β there is genuinely nothing written here, and i'm not about to invent behaviour that isn't in the docs, because that would be lying to you and we don't do that in this group chat. π
so like. read the SYNOPSIS, respect the PARAMS, and check the RETURN VALUE below. that's the whole vibe. π§
β RETURN VALUE β
(0 == success, else -errno)
translation: 0 means it slayed. anything else is a negative errno, so like, go look up what went wrong. π
π SEE ALSO π
the whole friend group, in order, no one gets left out:
qb_array_elems_per_bin_get(3)qb_array_new_bin_cb_set(3)qb_array_create(3)qb_array_num_bins_get(3)qb_array_index(3)qb_array_create_2(3)qb_array_free(3)
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
and that's the page, bestie!! π this whole thing came to you courtesy of LIBQB, dated 2025-09-16, and it lives in the libqb Programmer's Manual. go grow that array. it's giving expansion. π¦π
π¦ where this page comes from
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- ubuntu resolute: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- ubuntu stonking: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms