---
name: "VistaIOCopy"
section: "3"
platform: "linux"
package: "libvistaio-dev"
version: "1.2.19-3+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/VistaIOCopy"
---

# VistaIOCopy(3)

copy or zero an array

## 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.**

## ARGUMENTS

- *from*, *to*, *array*

  **Each specifies a pointer to the first element of an array of** *type***.**

- *nels*

  **Specifies the number of array elements.**

## DESCRIPTION

**The VistaIOCopy macro copies** *nels* **array elements (each of type** *type***) from** *from* **to** *to***.**

**The VistaIOZero macro writes zeros into** *nels* **array elements (each of** **type** *type***) beginning at** *array***.**

## SEE ALSO
