lis_vector_duplicate(3)

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

✨ lis_vector_duplicate(3) β€” from the Lis Library Functions era πŸ’–

okay bestie, gather round, because this little cutie is the manual page for lis_vector_duplicate(3) and she is so much simpler than she sounds 🫢


🌸 NAME 🌸

lis_vector_duplicate β€” she duplicates the vector, that's the whole job, no cap πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

#include "lis.h"

LIS_INT lis_vector_duplicate(void *vin, LIS_VECTOR *vout);

πŸ¦‹ DESCRIPTION πŸ¦‹

So basically you hand her a vector and she makes you a brand new one, vout, that's got all the same information as vin. Same info, new vector, main character energy ✨


πŸ’œ INPUT πŸ’œ

  • vin β€” the source vector, aka the one you're copying the info from πŸ’…

πŸ’– OUTPUT πŸ’–

  • vout β€” the destination vector, aka the fresh new baby that just got allocated 🍼

⭐ EXIT STATUS ⭐

Here's what she hands back when she's done:

  • 0 β€” the process is normally terminated, everything slayed, no notes βœ…
  • unspecified β€” an error occurred 😭 like it just went wrong, unspecified, mysterious, we don't know the details

πŸ‘‘ NOTE πŸ‘‘

🚨 okay this part matters, do not skip it bestie 🚨

lis_vector_duplicate does not copy the values. She only allocates the memory. That's it. Just the memory. 🫠

So if you actually want the values copied too, you gotta call lis_vector_copy after this function. Duplicate first, copy second. That's the order, periodt. πŸ’…


🌈 SEE ALSO 🌈


and that's the whole page, bestie!! πŸŽ€ this one's from the Lis crew, man page dated 6 Sep 2012, and the header up top said lis_vector_duplicate(3) which we already covered, and the footer signed off with lis_vector_duplicate(3) one more time because she loves a dramatic exit πŸ’– mwah, go allocate some memory responsibly ✨🧚

πŸ“¦ where this page comes from