lis_vector_duplicate(3f)

πŸ“¦ version 2.1.11, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

✨ lis_vector_duplicate(3f) ✨

okay bestie, welcome to section 3f of the Lis Library Functions manual β€” yes the whole thing is filed under that name, we love a formal era πŸ’… β€” and today we're talking about lis_vector_duplicate, which is literally the "make me a twin" function and I'm obsessed.


πŸ¦‹ NAME πŸ¦‹

lis_vector_duplicate β€” duplicate the vector


🌸 SYNOPSIS 🌸

subroutine lis_vector_duplicate(void *vin, LIS_VECTOR *vout, LIS_INTEGER
ierr);

look at her. three args, no notes. πŸŽ€


πŸ’– DESCRIPTION πŸ’–

Create vector vout which has the same information as vin.

that's it. that's the whole vibe. you hand it a vector, it hands you back a vector that knows all the same stuff. ✨


πŸ“ INPUT πŸ“

  • vin β€” the source vector. the original. the blueprint. the one we're copying from. πŸ‘‘

🌈 OUTPUT 🌈

  • vout β€” the destination vector. the new baby. freshly made, ready to hold stuff. 🫢

🚨 NOTE 🚨

bestie, READ THIS ONE. lis_vector_duplicate does not copy the values β€” it only allocates the memory. so like, the shape is there, but the contents?? not yet. it's giving empty apartment with great floor plan. 😭

if you actually want the values in there too, you gotta call lis_vector_copy after this function. in that order. do not skip steps. periodt. πŸ’…


πŸ”₯ SEE ALSO πŸ”₯


πŸ‘‘ sign-off πŸ‘‘

okay that's the whole page, you ate, go duplicate responsibly. this was page lis_vector_duplicate(3f) from the Lis Library Functions man page, dated 6 Sep 2012 β€” yes she's vintage, yes she still slays, iykyk. bye bestie, mwah πŸ’–πŸ§šβ­

πŸ“¦ where this page comes from