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 πŸ’…

ngl if you're duplicating you're probably also gonna need ec_vec_free(3) eventually. just saying πŸ‘€

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