MOVEBYTES(3)

πŸ“¦
version 2022.10.16 Β· 2 versions
, in opensuse-leap 16.0

πŸŽ€ MOVEBYTES(3) πŸŽ€

okay bestie, this one’s from SchilyΒ΄s LIBRARY FUNCTIONS, and it’s literally the β€œmove my data, please” girlie of the library. πŸ’…


✨ NAME ✨

movebytes() β€” moves data. that’s it, that’s the vibe. πŸ¦‹


πŸ¦‹ SYNOPSIS πŸ¦‹

       char *movebytes(from, to, size)
            const void     *from;
            void           *to;
            ssize_t        size;

🌸 DESCRIPTION 🌸

movebytes() copies size bytes from from to to. like a tiny little data handoff, no cap. 🫢


πŸ’– RETURN VALUE πŸ’–

you get a pointer just after the last transferred byte in the to string. slay. ✨


😭 ERRORS 😭

no errors are defined. literally zero, zilch, none. iconic behavior, honestly. πŸ’€


🌈 SEE ALSO 🌈

  • cmpbytes(3)
  • cmpmbytes(3)
  • cmpnullbytes(3)
  • fillbytes(3)
  • findbytes(3)
  • movecbytes(3)
  • swapbytes(3)
  • zerobytes(3)

πŸ‘‘ NOTES πŸ‘‘

this routine correctly handles overlapping buffers. yes bestie, overlapping buffers are handled correctly β€” that’s the whole note, and it ate. πŸ”₯


πŸ’– page made with love by Joerg Schilling on 2022/09/09 β€” MOVEBYTES(3), and that’s the whole vibe. 🫢

πŸ“¦ where this page comes from