EC_VEC_DUP(3)
β¨ NAME β¨
ec_vec_dup β bestie, it duplicates a vector π
okay so real talk, this is from the Libecoli Programmer's Manual and it's literally the "make me another one, same vibe" function π«Ά
πΈ SYNOPSIS πΈ
#include <ecoli/vec.h>
struct ec_vec * ec_vec_dup(
const struct ec_vec *vec
);
so you pull in ecoli/vec.h and then you call ec_vec_dup with one lil const struct ec_vec * and it hands you back a struct ec_vec * π that's the whole plot, no cap.
π¦ SEE ALSO π¦
the group chat, aka everybody who's also invited to this party π
ec_vec_add_ptr(3)ec_vec_free(3)ec_vec(3)ec_vec_add_u8(3)ec_vec_add_u16(3)ec_vec_add_by_ref(3)ec_vec_get(3)ec_vec_ndup(3)ec_vec_add_u64(3)ec_vec_add_u32(3)
ngl if you're duplicating you're probably also gonna need ec_vec_free(3) eventually. just saying π
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page, bestie β¨ this was libecoli, dated 2026-06-11, and honestly? iconic. go duplicate something responsibly π§π
π¦ where this page comes from
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms