EC_STRVEC_DUP(3)
π EC_STRVEC_DUP(3) π
okay bestie, welcome to the Libecoli Programmer's Manual β yes we're doing C library lore today and honestly? it's giving iconic. sit down, sip ur boba, and let's talk about duplicating a string vector. no cap, it's a whole vibe. π¦
β¨ NAME β¨
ec_strvec_dup β Duplicate a string vector. π
that's it. that's the whole job. it copies a string vector. slay.
πΈ SYNOPSIS πΈ
#include <ecoli/strvec.h>
struct ec_strvec * ec_strvec_dup(
const struct ec_strvec *strvec /* The pointer to the string vector. */
);
so you pull in <ecoli/strvec.h> and then you call ec_strvec_dup() with one arg, strvec, which is β and I cannot stress this enough β The pointer to the string vector. π«Ά
π DESCRIPTION π
Attributes are duplicated if any. periodt.
like, if ur strvec is carrying attributes, they're coming along for the ride too. the way that it just... duplicates everything it needs to. obsessed. π
β RETURN VALUE β
you get back the duplicated strvec object β yay! π but if things go wrong you get NULL, and errno is set. so check ur return value, bestie, or ur gonna have a bad time. π
π¦ SEE ALSO π¦
the whole friend group, fr fr:
ec_strvec_set_attrs(3)ec_strvec_del_last(3)ec_strvec_val(3)ec_strvec_cmp(3)ec_strvec_sort(3)ec_strvec_from_array(3)ec_strvec_get_attrs(3)ec_strvec_set(3)ec_strvec_len(3)ec_strvec_dump(3)ec_strvec_sh_lex_str(3)ec_strvec_add(3)ec_strvec_free(3)ec_strvec(3)ec_strvec_ndup(3)
iykyk π
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's a wrap on EC_STRVEC_DUP(3) from the Libecoli Programmer's Manual π β this page dropped on 2026-06-11, courtesy of libecoli. go forth and duplicate responsibly, bestie. mwah. π
β¨π
π¦ 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