VistaIOCopy(3)

πŸ’… VistaIOCopy(3) β€” Library Functions Manual πŸ’…

okay bestie, welcome to VistaIOCopy and VistaIOZero, the two macros that do the absolute most basic (and most iconic) things: copying an array and filling one with zeros. Library functions manual, yes, but make it ✨aesthetic✨.


🌸 NAME 🌸

VistaIOCopy, VistaIOZero β€” copy or zero an array 🫢


πŸŽ€ SYNTAX πŸŽ€

#include <vistaio.h>

void VistaIOCopy (from, to, nels)
       type *from, *to;
       size_t nels;

void VistaIOZero (array, nels)
       type *array;
       size_t nels;

where type is any C type. literally any. the macros are not picky, they're flexible, they're main character energy πŸ’…


✨ ARGUMENTS ✨

  • from, to, array β€” each one of these is a pointer to the first element of an array of type. yes, three names, same job description, they're just different slots 🎯
  • nels β€” the number of array elements. how many we're working with. the count. the vibe check number πŸ”’

πŸ‘‘ DESCRIPTION πŸ‘‘

The VistaIOCopy macro copies nels array elements (each of type type) from from to to. that's it. that's the whole thing. no cap, it just moves your data from one place to the other πŸ¦‹

The VistaIOZero macro writes zeros into nels array elements (each of type type) beginning at array. not empty, not vibes β€” actual zeros, written in, starting at the beginning and going for nels elements πŸ’€βœ¨


πŸ”₯ SEE ALSO πŸ”₯

ngl bestie... the original page lists absolutely nothing here. this section is giving empty group chat πŸ•³οΈ no references, no cross-links, no friends. just the heading, standing there, serving silhouette. iconic in its own lonely way πŸ™ˆ


VistaIO Version 1.2.14 β€” dated 19 January 1993. yeah this manual is older than most of the internet and it still ate πŸ’… go forth and copy those arrays, bestie, you got this 🫢🌸