lis_array_swap(3)

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

πŸ’… lis_array_swap β€” from the Lis Library Functions manual, bestie

okay so picture this: you got two arrays and you want them to trade places. that's it. that's the whole girl. lis_array_swap is the swap the values of the vector elements girlie and she is LOWKEY iconic for it ✨


✨ SYNOPSIS ✨

#include "lis.h"

LIS_INT lis_array_swap(LIS_INT n, LIS_SCALAR x[], LIS_SCALAR y[]);

like literally two lines of include-and-call and you're done, no cap 🫢


🌸 DESCRIPTION 🌸

Swap the values of the vector elements. πŸ¦‹

that's the whole vibe. x and y walk in, they exchange everything they've got, they walk out. it's giving "we traded lives for a second" and honestly? obsessed. πŸ’–


πŸŽ€ INPUT πŸŽ€

  • n β€” the size of the vectors, bestie. how many elements we're dealing with. know your count or perish πŸ’€
  • x, y β€” the source arrays. the two cuties doing the swap πŸ‘‘

πŸ¦‹ OUTPUT πŸ¦‹

  • x, y β€” the destination arrays. yes same names, because they come out the other side changed. main character transformation arc fr fr 🌈

⭐ EXIT STATUS ⭐

here's what you can get back when it's all said and done:

  • 0 β€” the process is normally terminated. slay. everything ate, nothing left on the plate πŸ’…
  • unspecified β€” an error occurred. 😭 not the vibe. no details given, just chaos, just mystery, just pain
bestie the error case is literally called unspecified. we do not know what happened. it happened. move on πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the page, pookie 🧚 this was lis_array_swap(3), part of the Lis Library Functions manual, dated 3 Dec 2014, and yes it's filed under Man Page because of course it is. go swap something. responsibly. πŸ’œπŸ“

πŸ“¦ where this page comes from