EC_VEC_ADD_PTR(3)

πŸ’– EC_VEC_ADD_PTR(3) πŸ’–

Libecoli Programmer's Manual page, bestie! This is ec_vec_add_ptr, and it's giving tiny helper with vector main-character energy. ✨


✨ NAME ✨

ec_vec_add_ptr - Add opaque element to a vector.

Okay so literally: you got a vector, you got a void * element, and this function is the one that adds that opaque lil thing in. No cap. 🫢

🌸 SYNOPSIS 🌸

       #include <ecoli/vec.h>

       int ec_vec_add_ptr(
           struct ec_vec   *vec,
           void            *elt
       );

It returns an int, takes a struct ec_vec *vec and a void *elt, and lives in <ecoli/vec.h>. Slay. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Bestie, the whole friend group is here: 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_dup(3), ec_vec_add_u64(3), ec_vec_add_u32(3). Go read them, iykyk. 🌈

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


xoxo, libecoli πŸ’– 2026-06-11 πŸŽ€ EC_VEC_ADD_PTR(3) πŸ’œ

πŸ“¦ where this page comes from