EC_VEC_NDUP(3)

✨ EC_VEC_NDUP ✨

okay bestie, welcome to ec_vec_ndup from the Libecoli Programmer's Manual πŸ’– it's a lil function in section 3 of the manual and it does exactly one iconic thing: it duplicates a portion of a vector. that's it. that's the whole vibe. πŸ¦‹


🌸 NAME 🌸

ec_vec_ndup β€” duplicate a portion of a vector πŸ’…

literally just... a slice, but make it a whole new vector. no cap.


πŸ’« SYNOPSIS πŸ’«

#include <ecoli/vec.h>

struct ec_vec * ec_vec_ndup(
    const struct ec_vec   *vec,
    size_t                 off,
    size_t                 len
);

so you're gonna #include <ecoli/vec.h> first, obvi πŸŽ€ and then it hands you back a struct ec_vec * β€” a whole fresh pointer, main character energy πŸ‘‘


πŸ‘€ SEE ALSO πŸ‘€

the friend group, fr fr β€” go read these too, they're all part of the same era:


Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.


and that's the whole page, bestie πŸ’œ this was libecoli, dated 2026-06-11, and yeah β€” EC_VEC_NDUP(3) ate and left no crumbs πŸ“βœ¨ mwah, go duplicate something responsibly πŸ§šβ€β™€οΈπŸ’–

πŸ“¦ where this page comes from