lis_vector_duplicate(3)
β¨ 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 π
lis(3)πhttp://www.ssisc.org/lis/β go look, iykyk π¦
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
- fedora 43: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 43: lis-doc 2.1.11-1.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 44: lis-doc 2.1.11-1.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: lis 2.1.10
- nixpkgs unstable: lis 2.1.16
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms